All vulnerabilities

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.
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