npm
CVE-2026-44266
Elo Ruby backend has Remote Code Execution via unescaped `#{...}` interpolation in emitted string literals and subtype-constraint labels
- 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
- 1% in the next 30 daysHigher than 63% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- Improper output encoding (CWE-116)Server-side template injection (CWE-1336)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-7w38-ggh5-v542
- Sources
- OSV.dev and GitHub
Description
Elo's Ruby backend emits attacker-controlled text into Ruby double-quoted strings without escaping the # character. Because # begins Ruby's interpolation sequences — #{expr}, #@ivar, #@@cvar, #$gvar — and any expression wrapped in #{...} may use backticks for shell execution, an Elo program that contains a crafted string literal or a labelled subtype constraint compiles to Ruby that evaluates attacker-chosen Ruby, and through backticks runs attacker-chosen shell commands, at runtime.
The same Elo source compiled to JavaScript, Python, or SQL is benign, so the bug also breaks the cross-target portability guarantee the rest of the compiler honours.
Two sinks exist in src/compilers/ruby.ts at commit 749af7b:
- String-literal emitter — lines 180–184. The emitter escapes backslash, double quote, and control characters, but not #. Any #{...} sequence in an Elo string literal flows straight into the emitted Ruby source.
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-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-44266
- GitHub Advisory Database https://github.com/advisories/GHSA-7w38-ggh5-v542