All vulnerabilities

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
Weakness
Improper input validation (CWE-20)CWE-749SQL injection (CWE-89)Code injection (CWE-94)
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.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
@enspirit/elonpm · osv:npm:@enspirit/elo
  • Every version before 1.0.1

About @enspirit/elo

Weekly downloads (npm)
591npm, 24 Nov 2026

References