CVE 6.9 MEDIUM

SandboxJS: Stack overflow DoS via deeply nested expressions in recursive descent parser_CVE-2026-34211

6.9 / 10
MEDIUM
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

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.

Basic Information

ID CVE-2026-34211
Source GitHub_M
Published Apr 6, 2026 at 15:10
Modified Apr 7, 2026 at 14:09

Affected Product

Vendor nyariv
Product SandboxJS
Version < 0.8.36
Affected Versions nyariv SandboxJS < 0.8.36

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.