Critical · 9.8 Node.js & npm GHSA-7w38-ggh5-v542 CVE-2026-44266 GHSA-33r5-xmm8-v6x5 CVE-2026-44267
Elo Expression Language: Two Critical Remote Code Execution Vulnerabilities in Ruby and JavaScript Emitters (CVE-2026-44266, CVE-2026-44267)
Two critical vulnerabilities in @enspirit/elo, a purely functional expression language for no-code tools, allow remote code execution through its Ruby and JavaScript code emitters. Both are fixed in version 1.0.1.
By PatchBriefing · ·
Produced automatically from official sources with the help of AI. How we work →
- GitHub Advisory Database database 3w ago · view ↗
- GitHub Advisory Database database 3w ago · view ↗
- OSV.dev database 3w ago · view ↗
- OSV.dev database 3w ago · view ↗
- NVD (NIST) database 1w ago · view ↗
- NVD (NIST) database 1w ago · view ↗
- CVE.org database 2w ago · view ↗
- CVE.org database 3w ago · view ↗
AI summary
The @enspirit/elo package, a purely functional expression language used in no-code tools, has two separate critical vulnerabilities disclosed that both lead to remote code execution. One affects the Ruby code emitter and the other the JavaScript code emitter. Both are tracked under separate identifiers and both are fixed in the same release, version 1.0.1. Versions up to and including 1.0.0 are affected by both issues.
What happened
Two critical vulnerabilities were disclosed in @enspirit/elo. CVE-2026-44266 affects the Ruby backend: attacker-controlled text is embedded in Ruby double-quoted strings without escaping the `#` character, so Ruby interpolation sequences such as `#{...}` placed inside string literals or labelled subtype-constraint messages become executable Ruby code when the generated Ruby runs. CVE-2026-44267 affects the JavaScript emitter: the member-access handler does not reject meta-properties, the parser accepts `constructor` as an ordinary identifier, and the JavaScript emitter outputs the resulting property access directly. This allows a plain Elo string to reach `.constructor.constructor`, which resolves to the JavaScript `Function` constructor, letting attacker-selected code run in the host JavaScript runtime.
Technical cause
For CVE-2026-44266, the issue lies in src/compilers/ruby.ts, which emits attacker-controlled text into Ruby double-quoted strings without escaping `#`. This affects the string-literal emitter and the labelled subtype-constraint branch: a failing labelled subtype constraint evaluates its message, and an ordinary string literal is evaluated when the compiled Ruby executes, enabling Ruby code execution and shell command execution via backticks. JavaScript, Python and SQL emission are not affected by this specific Ruby path. For CVE-2026-44267, the cause spans three files: the member_access handler in src/transform.ts does not reject meta-properties, src/parser.ts accepts `constructor` as an ordinary identifier rather than rejecting it, and src/compilers/javascript.ts emits the surviving property access directly into generated JavaScript. This plain-string injection path is distinct from a separate, previously identified programmatic AST-object injection issue.
Who is affected
Anyone running @enspirit/elo version 1.0.0 or earlier is affected by both vulnerabilities. Documented entry points for CVE-2026-44266 include the `/try` playground when using the Ruby target, the `bin/eloc -t ruby -x` command-line tool, and applications calling `defaultFormats.elo.parse()` followed by Ruby code emission. Documented entry points for CVE-2026-44267 include `defaultFormats.elo.parse()`, the `bin/elo` tool, and the elo-lang.org `/try` playground. Impact includes browser script execution and session compromise on the auto-running playground, and arbitrary Node.js code execution on systems that embed the library, including CI and DevOps hosts.
Affected versions
@enspirit/elo versions up to and including 1.0.0 are affected by both CVE-2026-44266 and CVE-2026-44267. Both issues are fixed in version 1.0.1.
Fixes and mitigation
Both vulnerabilities are fixed in @enspirit/elo version 1.0.1. There is no indication in the available facts of alternative mitigations or workarounds beyond upgrading.
Recommended action
Upgrade @enspirit/elo to version 1.0.1 or later as soon as possible. Treat any Elo expressions originating from untrusted input as attacker-controlled, particularly if your application uses the Ruby or JavaScript emission targets, the `/try` playground, or the `bin/eloc` / `bin/elo` command-line tools. Review deployments on CI, DevOps, or browser-facing systems where the library is embedded, since both issues allow remote, unauthenticated code execution without user interaction.
PatchBriefing score
9.8 / 10 · Critical
Official CVSS: 9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS 0.0105 (64 percentile)
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
- @enspirit/elo <= 1.0.0
- vulnerable
- @enspirit/elo ≥ 0 < 1.0.1
- vulnerable
- ≥ 1.0.1
- patched
- @enspirit/elo <= 1.0.0
- vulnerable
- @enspirit/elo ≥ 0 < 1.0.1
- vulnerable
- ≥ 1.0.1
- patched
Reported fixes
Both vulnerabilities are fixed in @enspirit/elo version 1.0.1. There is no indication in the available facts of alternative mitigations or workarounds beyond upgrading.
How this was built
8 source records were collected, matched and used to prepare the report above.
-
GitHub Advisory Database database
-
GitHub Advisory Database database
-
OSV.dev database
-
OSV.dev database
-
NVD (NIST) database
-
NVD (NIST) database
Revision history
- Published
- Generated
- Published
- Generated
- Published
- Early Warning