CVE-2025-34146
JSON

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 packageVersionsReported by
nyariv sandboxjsup to 0.8.23CVE List
@nyariv/sandboxjs (npm)before 0.8.24GitHub Advisory Database

All scores

VulnCheck7.0high CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS: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

CWE-1321

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

Sources

SourceRecordLicence
CVE ListCVE-2025-34146 changed 2026-10-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-9qm3-6qrr-c76m changed 2025-07-31CC-BY-4.0
NVDCVE-2025-34146 changed 2026-10-08Public domain