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

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-03T21:45:14.000Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-8pfc-jjgw-6g26
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- nyariv SandboxJS: < 0.8.36; before 0.8.36
- @nyariv/sandboxjs (npm): before 0.8.36

## Every score

- GitHub_M: CVSS:4.0 6.9 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`
- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 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`

## References

- <https://github.com/nyariv/SandboxJS/security/advisories/GHSA-8pfc-jjgw-6g26> (exploit, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34211> (advisory)
- <https://github.com/nyariv/SandboxJS> (package)

## Sources

- CVE List: [CVE-2026-34211](https://www.cve.org/CVERecord?id=CVE-2026-34211), CVE Terms of Use, modified 2026-04-07
- GitHub Advisory Database: [GHSA-8pfc-jjgw-6g26](https://github.com/advisories/GHSA-8pfc-jjgw-6g26), CC-BY-4.0, modified 2026-04-06
- NVD: [CVE-2026-34211](https://nvd.nist.gov/vuln/detail/CVE-2026-34211), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-34211 · Whole record: https://cve.day/CVE-2026-34211.json · Rebuilt by cve.day 2026-11-25T22:59:18.016Z
