Skip to main content
← All vulnerabilities
CVE-2026-34211GHSA-8PFC-JJGW-6G26

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.8.36
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • nyariv SandboxJS

    fixed in 0.8.36

  • @nyariv/sandboxjsnpm

    fixed in 0.8.36

References 1

GitHub · nyariv/SandboxJS