Sandboxjs
CVE-2026-25520
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCall Object.values/Object.entries on wrapped object
-
ExploitAccess unwrapped Function constructor via Array.prototype.at
-
ExecutionInvoke host Function constructor
-
ImpactExecute arbitrary code outside sandbox
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Exploitation Conditions | SandboxJS versions prior to 0.8.29 must be used to execute untrusted JavaScript code. The vulnerability requires the ability to run arbitrary JavaScript within the sandbox environment; no authentication or special configuration needed. |
| Impact | CVSS 10.0 with PoC and patch. Second SandboxJS escape (after AsyncFunction in CVE-2026-23830). The library has proven difficult to secure. |
| Exploit ScenarioDerived | Sandboxed code returns a crafted value from a function call that, when processed by the host, executes arbitrary code outside the sandbox. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 12, 2026
SandboxJS has a second CVSS 10.0 sandbox escape where function return values aren't properly sanitized, allowing code execution outside the sandbox.
Earlier versions of this analysis (1)
Second CVSS 10.0 SandboxJS escape via unsanitized function return values.
RemediationAI
Update to SandboxJS 0.8.29+.
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-74 injection vulnerability where function return values bypass sandbox restrictions, allowing sandboxed code to inject and execute code in the host context.
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, The return values of functions aren't wrapped. Object.values/Object.entries can be used to get an Array containing the host's Function constructor, by using Array.prototype.at you can obtain the hosts Function constructor, which can be used to execute arbitrary code outside of the sandbox. This vulnerability is fixed in 0.8.29.
Executive ViewAI
SandboxJS versions before 0.8.29 contain a critical vulnerability (CVSS 10.0) that allows attackers to bypass sandbox protections and execute arbitrary code within applications using this library. Any organization running vulnerable versions faces immediate risk of complete system compromise, data theft, and unauthorized access. Public exploits are already available, making exploitation likely without urgent remediation.
Apply vendor patch. If patching cannot be completed immediately: implement strict input validation and output encoding on all data processed through SandboxJS; isolate affected applications to network segments with restricted outbound access; deploy WAF rules to detect and block exploitation attempts; consider running vulnerable applications in containerized environments with minimal privileges and filesystem access restrictions.
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 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 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-58jh-xv4v-pcx4
NVD
CVE.org
EPSS
Exploit-DB