CVE-2026-34211
CVE-2026-34211 · SandboxJS: Stack overflow DoS via deeply nested expressions in recursive descent parser
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 6.9 · Medium · EPSS 0.4% · Fix available
- Published
- Updated
Stack: node
Affected products and versions
sandboxjs
- Versions
- < 0.8.36: Affected
No fix published
@nyariv/sandboxjs npm
- Affected ranges
- SEMVER: < 0.8.36
Update to 0.8.36