CVE-2026-25641CWE-367

SandboxJS has a sandbox escape via TOCTOU bug on keys in property accesses

Critical · published February 6, 2026

CVSS v3.1
10.0
EPSS
1%
Percentile
46.8
In the wild
Unconfirmed
What it is

🚨 A sneaky mismatch in keys could let attackers escape your JavaScript sandbox! 🔥 Think of it like a restaurant that serves food to anyone who orders, regardless of whether they have a reservation — that's how this vulnerability works! If the validation isn't strict, anyone can slip through the cracks and access the kitchen. 🍽️ An attacker could manipulate the property access to execute malicious code, effectively breaking out of the sandbox. This could lead to data breaches or unauthorized actions within your application, making it a recipe for disaster! Don't let bad actors into your kitchen!

Put simply

Think of it like a restaurant that serves food to anyone who orders, regardless of whether they have a reservation — that's how this vulnerability works! If the validation isn't strict, anyone can slip through the cracks and access the kitchen. 🍽️ This vulnerability in SandboxJS prior to version 0.8.29 allows attackers to bypass sandbox restrictions by exploiting a mismatch in validation keys, enabling access to properties they shouldn't be able to reach.

What to do

An attacker could manipulate the property access to execute malicious code, effectively breaking out of the sandbox. This could lead to data breaches or unauthorized actions within your application, making it a recipe for disaster! Don't let bad actors into your kitchen! Upgrade SandboxJS to version 0.8.29 or later immediately to patch this critical vulnerability. Additionally, review your sandboxing strategies to ensure you have tight controls in place to prevent similar vulnerabilities in the future. You've got this! Stay vigilant and keep your code secure! 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00576 · 46.8th percentile
Weakness
CWE-367 · Time-of-check Time-of-use (TOCTOU) Race Condition
Published
2026-02-06T19:50Z
EPSS history
Timeline
  • 06 FEB 19:50Z
    SandboxJS has a sandbox escape via TOCTOU bug on keys in property accesses
    cvelistv5