CVE-2026-34211 PUBLISHED

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

Assigner: GitHub_M
Reserved: 26.03.2026 Published: 06.04.2026 Updated: 06.04.2026

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.

Metrics

CVSS 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
CVSS Score: 6.9

Product Status

Vendor nyariv
Product SandboxJS
Versions
  • Version < 0.8.36 is affected

References

Problem Types

  • CWE-674: Uncontrolled Recursion CWE