Description
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 3.1 7.5/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| nyariv | SandboxJS | < 0.8.36 |
References
- https://github.com/nyariv/SandboxJS/security/advisories/GHSA-8pfc-jjgw-6g26Exploit, Mitigation, Vendor Advisory
Timeline
- Published
- Apr 6, 2026
- Last modified
- Oct 26, 2026
- NVD status
- Analyzed