CVE-2026-34211CWE-674

SandboxJS: Stack overflow DoS via deeply nested expressions in recursive descent parser

Medium · published April 6, 2026

CVSS v4.0
6.9
EPSS
0%
Percentile
40.9
In the wild
Unconfirmed
What it is

SandboxJS is a JavaScript sandboxing library. Prior to 0.8.36, the @nyariv/sandboxjs parser contains unbounded recursion in the restOfExp function and the lispify/lispifyExpr call chain. An attacker can crash any Node.js process that parses untrusted input by supplying deeply nested expressions (e.g., ~2000 nested parentheses), causing a RangeError: Maximum call stack size exceeded that terminates the process. This vulnerability is fixed in 0.8.36.

The record
Technical detail
CVSS v4.0
6.9 · MEDIUM
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
EPSS
0.00486 · 40.9th percentile
Weakness
CWE-674 · Uncontrolled Recursion
Published
2026-04-06T15:10Z
EPSS history
Timeline
  • 06 APR 15:10Z
    SandboxJS: Stack overflow DoS via deeply nested expressions in recursive descent parser
    cvelistv5