Sandboxjs
CVE-2026-25881
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPlace global prototype in array literal
-
DeliveryRetrieve prototype stripping isGlobal flag
-
ExploitMutate host built-in prototype
-
ExecutionPollute sensitive properties
-
ImpactExecute arbitrary code via gadget chains
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A03:2021 - Injection
ASVS 5.0
V3 - Web Frontend Security Prototype pollution prevention
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | SandboxJS versions prior to 0.8.31 with sandboxed JavaScript code execution enabled. Requires application to invoke sensitive sinks (e.g., execSync) that consume polluted prototype properties. No authentication or user interaction required for sandbox escape itself. |
| Impact | CVSS 9.0 with PoC and patch. SandboxJS continues to have sandbox escapes discovered — the library's approach to sandboxing JavaScript appears fundamentally inadequate. |
| Exploit ScenarioDerived | An attacker uses prototype pollution to escape the sandbox and execute code in the host environment. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 12, 2026
SandboxJS prior to 0.8.31 has yet another sandbox escape via prototype pollution, the sixth distinct escape technique discovered.
Earlier versions of this analysis (1)
Sixth SandboxJS sandbox escape via prototype pollution.
RemediationAI
Update to 0.8.31+. Seriously consider migrating to V8 isolates for security-critical sandboxing.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
SandboxJS < 0.8.31 has a CWE-1321 prototype pollution-based sandbox escape. This is the sixth distinct escape technique found in the library.
Know when Sandboxjs gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
3DescriptionGitHub Advisory
SandboxJS is a JavaScript sandboxing library. Prior to 0.8.31, a sandbox escape vulnerability allows sandboxed code to mutate host built-in prototypes by laundering the isGlobal protection flag through array literal intermediaries. When a global prototype reference (e.g., Map.prototype, Set.prototype) is placed into an array and retrieved, the isGlobal taint is stripped, permitting direct prototype mutation from within the sandbox. This results in persistent host-side prototype pollution and may enable RCE in applications that use polluted properties in sensitive sinks (example gadget: execSync(obj.cmd)). This vulnerability is fixed in 0.8.31.
Executive ViewAI
SandboxJS versions prior to 0.8.31 contain a critical sandbox escape vulnerability that allows attackers to break out of the JavaScript sandbox and directly manipulate host system prototypes, potentially enabling arbitrary code execution and complete application compromise. Any organization using affected versions of SandboxJS to isolate or restrict untrusted code faces immediate risk of full system takeover, especially given the public availability of working exploits.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)GitHub Advisory
SandboxJS library prior to 0.8.26 has a CVSS 10.0 sandbox escape via AsyncFunction constructor, allowing execution of ar
Sandbox escape in SandboxJS before 0.8.27 via __lookupGetter__ prototype chain access. CVSS 10.0 — complete sandbox bypa
SandboxJS has a second CVSS 10.0 sandbox escape where function return values aren't properly sanitized, allowing code ex
SandboxJS has a fourth CVSS 10.0 sandbox escape through Map's safe prototype being used as a gateway to inject arbitrary
SandboxJS has a third CVSS 10.0 sandbox escape via Map prototype shadowing that allows complete sandbox bypass.
SandboxJS has a fifth CVSS 10.0 escape via a TOCTOU race condition in sandbox validation, allowing code to slip through
SandboxJS sandbox escape before 0.8.34 via Function access through arrays. CVSS 10.0.
GHSA-ww7g-4gwx-m7wj
NVD
CVE.org
EPSS
Exploit-DB