Skip to main content

Sandboxjs CVE-2026-25641

CRITICAL
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
2026-02-06 security-advisories@github.com GHSA-7x3h-rm86-3342
10.0
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious object with coercive toString()
  2. Delivery
    Pass object as property key to SandboxJS
  3. Exploit
    Key coerces differently during validation vs access
  4. Execution
    Bypass sandbox restrictions
  5. Impact
    Execute 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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)
v1 Mar 12, 2026 - 21:54 CVSS 10.0

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

npm @nyariv/sandboxjs fix: 0.8.29

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

GitHub Advisory PRIMARY 10.0 CRITICAL
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
PoC Detected
Feb 18, 2026 - 14:01 vuln.today
Public exploit code
Patch released
Feb 18, 2026 - 14:01 nvd
Patch available
CVE Published
Feb 06, 2026 - 20:16 nvd
CRITICAL 10.0

DescriptionGitHub 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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

70
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +50
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:nyariv:sandboxjs:*:*:*:*:*:node.js:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy