CVE-2025-34146
HIGH 7.0CVSS 4.0@nyariv/sandboxjs has Prototype Pollution vulnerability that may lead to RCE
A prototype pollution vulnerability exists in @nyariv/sandboxjs versions <= 0.8.23, allowing attackers to inject arbitrary properties into Object.prototype via crafted JavaScript code. This can result in a denial-of-service (DoS) condition or, under certain conditions, escape the sandboxed environment intended to restrict code execution. The vulnerability stems from insufficient prototype access checks in the sandbox’s executor logic, particularly in the handling of JavaScript function objects returned.
- Published
- 31 Jul 2025
- Last modified
- 8 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Deferred
- Weakness
- CWE-1321
- Also known as
- GHSA-9qm3-6qrr-c76m
- Sources
- NVDJSONOSV GHSA-9qm3-6qrr-c76mJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | HIGH 7.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | @nyariv/sandboxjs | < 0.8.24 | 0.8.24 |
References
- https://gist.github.com/Hagrid29/9df27829a491080f923c4f6b8518d7e3 · WEB
- https://github.com/nyariv/SandboxJS/issues/31 · WEB
- https://www.npmjs.com/package/@nyariv/sandboxjs · WEB
- https://www.vulncheck.com/advisories/nyariv-sandboxjs-prototype-pollution-sandbox-escape-dos · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-34146 · ADVISORY
- https://github.com/nyariv/SandboxJS · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 31 Jul 2025)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 31 Jul 2025)