CVE-2025-34146
Description
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.
Severity
HIGH
CVSS v3
not scored
CVSS v4
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 · source cna
Exploit chance (EPSS)
0.245%
chance of exploitation in the next 30 days
higher than 15.9% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-1321: Improperly Controlled Modification of Object Prototype Attributes
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2025-07-31 |
Timeline
- 2025-07-31Published by the CNA14:59 UTC
- 2025-07-31GitHub advisory published (GHSA-9qm3-6qrr-c76m)same day
- 2025-07-31CISA SSVC decision recordedsame day
Exploit and advisory records
GitHub advisory GHSA-9qm3-6qrr-c76m, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm @nyariv/sandboxjs | before 0.8.24 | 0.8.24 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| nyariv sandboxjs | from 0 through 0.8.23no fix listed | not listed |
References
- https://gist.github.com/Hagrid29/9df27829a491080f923c4f6b8518d7e3
- https://github.com/nyariv/SandboxJS/issues/31
- https://www.npmjs.com/package/@nyariv/sandboxjs
- https://www.vulncheck.com/advisories/nyariv-sandboxjs-prototype-pollution-sandbox-escape-dos
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2025-34146'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2025-34146'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2025-34146'curl 'https://api.contrastcyber.com/cve_products/CVE-2025-34146'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).