Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @nyariv/sandboxjs
  4. ›
  5. CVE-2026-34211

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

April 3, 2026 (updated April 6, 2026)

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.

References

  • github.com/advisories/GHSA-8pfc-jjgw-6g26
  • github.com/nyariv/SandboxJS
  • github.com/nyariv/SandboxJS/security/advisories/GHSA-8pfc-jjgw-6g26
  • nvd.nist.gov/vuln/detail/CVE-2026-34211

Code Behaviors & Features

Detect and mitigate CVE-2026-34211 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.8.36

Fixed versions

  • 0.8.36

Solution

Upgrade to version 0.8.36 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-674: Uncontrolled Recursion

Source file

npm/@nyariv/sandboxjs/CVE-2026-34211.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:06 +0000.