7.0high
nyariv sandboxjs 0.8.23 Prototype Pollution Sandbox Escape DoS
- Severity
- 7.0high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.24% (higher than 16% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-9qm3-6qrr-c76m
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| nyariv sandboxjs | up to 0.8.23 | CVE List |
| @nyariv/sandboxjs (npm) | before 0.8.24 | GitHub Advisory Database |
All scores
| VulnCheck | 7.0high 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 |
| GitHub | high 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 |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Existe una vulnerabilidad de contaminación de prototipos en las versiones de @nyariv/sandboxjs anteriores a la 0.8.23, que permite a los atacantes inyectar propiedades arbitrarias en Object.prototype mediante código JavaScript manipulado. Esto puede provocar una denegación de servicio (DoS) o, en ciertas circunstancias, escapar del entorno de pruebas destinado a restringir la ejecución del código. La vulnerabilidad se debe a comprobaciones de acceso de prototipos insuficientes en la lógica del ejecutor de pruebas, especialmente en el manejo de los objetos de función JavaScript devueltos.
References
| https://gist.github.com/Hagrid29/9df27829a491080f923c4f6b8518d7e3 | exploit, issue-tracking, web | |
| https://github.com/nyariv/SandboxJS/issues/31 | issue-tracking, web | |
| https://www.npmjs.com/package/@nyariv/sandboxjs | product, web | |
| https://www.vulncheck.com/advisories/nyariv-sandboxjs-prototype-pollution-sandbox-escape-dos | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-34146 | advisory | |
| https://github.com/nyariv/SandboxJS | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-34146 changed 2026-10-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-9qm3-6qrr-c76m changed 2025-07-31 | CC-BY-4.0 |
| NVD | CVE-2025-34146 changed 2026-10-08 | Public domain |