npm
CVE-2026-44267
Elo JavaScript emitter has sandbox escape to arbitrary Node.js / browser code execution via unfiltered `.constructor` member access
- Severity
- Critical 9.8
- Published
- 3 Nov 2026
- Last changed
- 3 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 1.0.1
- Exploit chance
- 0.8% in the next 30 daysHigher than 58% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- Server-side template injection (CWE-1336)Protection mechanism failure (CWE-693)Cross-site scripting (CWE-79)Code injection (CWE-94)
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Also known as
- GHSA-33r5-xmm8-v6x5
- Sources
- OSV.dev and GitHub
Description
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."
Three interacting sites in src/ produce the bug at commit 749af7b:
- src/transform.ts:144–158 — the member_access handler allows access on types any, object, or array without 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.
Affected software
| Software | Affected versions |
|---|---|
@enspirit/elonpm · osv:npm:@enspirit/elo |
|
About @enspirit/elo
- Weekly downloads (npm)
- 591npm, 24 Nov 2026
Vulnerabilities in @enspirit/elo
- In our list
- 3
- Published in the last 12 months
- 3
- Critical, last 12 months
- 2
- High, last 12 months
- 1
- Known exploited
- 0
- CVE-2026-44266Elo Ruby backend has Remote Code Execution via unescaped `#{...}` interpolation in emitted string literals and subtype-constraint labelsCritical 9.8 3 Nov 2026
- CVE-2026-44265Elo backends have code injection via unvalidated emission of programmatic AST fieldsHigh 7.4 3 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-44267
- GitHub Advisory Database https://github.com/advisories/GHSA-33r5-xmm8-v6x5