Sandboxjs
CVE-2026-25641
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious object with coercive toString()
-
DeliveryPass object as property key to SandboxJS
-
ExploitKey coerces differently during validation vs access
-
ExecutionBypass sandbox restrictions
-
ImpactExecute arbitrary code
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2021 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
|
| Exploitation Conditions | No special conditions — remote unauthenticated exploitation against SandboxJS versions prior to 0.8.29 with default configuration accepting user-supplied objects as property keys. |
| Impact | CVSS 10.0 with PoC and patch. Five distinct sandbox escape techniques discovered. SandboxJS's security model is fundamentally broken in pre-0.8.29 versions. |
| Exploit ScenarioDerived | An attacker exploits the timing window between sandbox validation and code execution to modify the code that runs, bypassing all restrictions. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 12, 2026
SandboxJS has a fifth CVSS 10.0 escape via a TOCTOU race condition in sandbox validation, allowing code to slip through during the check-execute gap.
Earlier versions of this analysis (1)
Fifth CVSS 10.0 SandboxJS escape via TOCTOU race condition.
RemediationAI
Update to 0.8.29+ immediately. For high-security use cases, consider V8 isolates instead.
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.29 has a CWE-367 TOCTOU race condition where sandboxed code can be modified between validation and execution, bypassing all sandbox checks.
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:L/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.29, there is a sandbox escape vulnerability due to a mismatch between the key on which the validation is performed and the key used for accessing properties. Even though the key used in property accesses is annotated as string, this is never enforced. So, attackers can pass malicious objects that coerce to different string values when used, e.g., one for the time the key is sanitized using hasOwnProperty(key) and a different one for when the key is used for the actual property access. This vulnerability is fixed in 0.8.29.
Executive ViewAI
A critical sandbox escape vulnerability in SandboxJS (CVE-2026-25641) allows attackers to bypass security controls and execute arbitrary code within applications using this library. Any organization running SandboxJS versions prior to 0.8.29 faces immediate risk of unauthorized code execution and potential compromise of sensitive data and systems.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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 prior to 0.8.31 has yet another sandbox escape via prototype pollution, the sixth distinct escape technique di
SandboxJS sandbox escape before 0.8.34 via Function access through arrays. CVSS 10.0.
GHSA-7x3h-rm86-3342
NVD
CVE.org
EPSS
Exploit-DB