npm
CVE-2026-44265
Elo backends have code injection via unvalidated emission of programmatic AST fields
- Severity
- High 7.4
- Published
- 3 Nov 2026
- Last changed
- 3 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 1.0.1
- Exploit chance
- 0.2% in the next 30 daysHigher than 15% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Needs local access · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H- Also known as
- GHSA-x9rp-7wh3-2rj5
- Sources
- OSV.dev and GitHub
Description
Elo's programmatic AST API accepts arbitrary values in many node fields without runtime type or syntax validation. Each backend's emit stage interpolates those values straight into the generated source with no escape pass. An integrator that populates the AST from JSON-deserialised input, plugin output, or any other untyped source therefore exposes a code-injection primitive that flows through to the emitted JavaScript, Ruby, Python, or SQL.
The same pattern was previously addressed in 0.9.7 (2026-01-27), which patched the date/datetime/duration literal emitters via JSON.stringify() after a report by naoyashiga. This advisory generalises that fix to the remaining AST surface — at least 23 emission sites across six node-field categories and four backends.
Each row is a category of sinks that share the same shape: TypeScript signature erased at runtime → AST-API consumer passes a crafted value → emit interpolates the value verbatim.
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-44267Elo JavaScript emitter has sandbox escape to arbitrary Node.js / browser code execution via unfiltered `.constructor` member accessCritical 9.8 3 Nov 2026
- 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
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-44265
- GitHub Advisory Database https://github.com/advisories/GHSA-x9rp-7wh3-2rj5