nyariv sandboxjs 0.8.23 Prototype Pollution Sandbox Escape DoS
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-34146
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 16:29 UTC · Revision 1
Source evidence
nyariv sandboxjs 0.8.23 Prototype Pollution Sandbox Escape DoS
core-osv · Original sourcePublished 31 Jul 2025, 14:59 UTC
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.
osv:CVE-2025-34146
Complete source record
{
"id": "13ff43bd71f665ef5490d3030ccdab9cfff1b68e47c42b823b5f60ad0e770c38",
"url": "https://osv.dev/vulnerability/CVE-2025-34146",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "nyariv sandboxjs 0.8.23 Prototype Pollution Sandbox Escape DoS",
"summary": "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.",
"evidence": "osv:CVE-2025-34146",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2025-34146",
"aliases": [
"CVE-2025-34146",
"GHSA-9qm3-6qrr-c76m"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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": [
{
"ranges": [
{
"repo": "https://github.com/nyariv/sandboxjs",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "83ad9ef4ac92c302d9c473857da676446e4892ac"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "0.8.23"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "0.8.23"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"versions": [
"0.8.23",
"0.8.22",
"0.8.21",
"0.8.20",
"0.8.19",
"0.8.18",
"0.8.17",
"0.8.16",
"0.8.15.1",
"0.8.15",
"0.8.14",
"0.8.12",
"0.8.11",
"0.8.10",
"0.8.9",
"0.8.8",
"0.8.7",
"0.8.6",
"0.8.5",
"0.8.4",
"0.8.3",
"0.8.2",
"0.8.0",
"0.7.1",
"0.7.0",
"0.6.2",
"0.6.1",
"0.6.0",
"0.5.3",
"0.5.2",
"0.5.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-34146.json"
}
}
],
"modified": "2026-10-28T02:30:20.838827363Z",
"provider": "osv",
"references": [
"https://www.npmjs.com/package/@nyariv/sandboxjs",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/34xxx/CVE-2025-34146.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-34146",
"https://www.vulncheck.com/advisories/nyariv-sandboxjs-prototype-pollution-sandbox-escape-dos",
"https://gist.github.com/Hagrid29/9df27829a491080f923c4f6b8518d7e3",
"https://github.com/nyariv/SandboxJS/issues/31"
],
"provider_metadata": {
"cwe_ids": [
"CWE-1321"
],
"cna_assigner": "VulnCheck",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/34xxx/CVE-2025-34146.json"
}
},
"related_cves": [
{
"value": "CVE-2025-34146",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 487159,
"published_at": "2025-07-31T14:59:35.716+00:00"
}