CVE-2026-34211: CWE-674: Uncontrolled Recursion in nyariv SandboxJS
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.
AI Analysis
Technical Summary
The vulnerability in SandboxJS versions before 0.8.36 arises from unbounded recursion in the parser functions restOfExp and lispify/lispifyExpr. When parsing deeply nested expressions (e.g., around 2000 nested parentheses), the recursion depth exceeds the JavaScript engine's call stack limit, causing a RangeError and crashing the Node.js process. This can be exploited by an attacker providing untrusted input to cause denial of service. The fix is implemented in version 0.8.36.
Potential Impact
An attacker can cause a denial of service by crashing any Node.js process that uses the vulnerable SandboxJS parser with crafted deeply nested input. This leads to process termination due to a RangeError: Maximum call stack size exceeded. There is no indication of code execution or data breach from this vulnerability.
Mitigation Recommendations
Upgrade SandboxJS to version 0.8.36 or later, where this uncontrolled recursion issue is fixed. No other mitigation is indicated or required.
CVE-2026-34211: CWE-674: Uncontrolled Recursion in nyariv SandboxJS
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in SandboxJS versions before 0.8.36 arises from unbounded recursion in the parser functions restOfExp and lispify/lispifyExpr. When parsing deeply nested expressions (e.g., around 2000 nested parentheses), the recursion depth exceeds the JavaScript engine's call stack limit, causing a RangeError and crashing the Node.js process. This can be exploited by an attacker providing untrusted input to cause denial of service. The fix is implemented in version 0.8.36.
Potential Impact
An attacker can cause a denial of service by crashing any Node.js process that uses the vulnerable SandboxJS parser with crafted deeply nested input. This leads to process termination due to a RangeError: Maximum call stack size exceeded. There is no indication of code execution or data breach from this vulnerability.
Mitigation Recommendations
Upgrade SandboxJS to version 0.8.36 or later, where this uncontrolled recursion issue is fixed. No other mitigation is indicated or required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-26T15:57:52.324Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d3d1a00a160ebd92c130d6
Added to database: 4/6/2026, 3:30:40 PM
Last enriched: 4/6/2026, 3:46:42 PM
Last updated: 4/7/2026, 7:02:32 AM
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.