CVE-2026-25520CWE-74

SandboxJS has a Sandbox Escape

Critical · published February 6, 2026

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

🚨 A sneaky oversight in SandboxJS lets attackers escape the confines of their safe space! Before version 0.8.29, function return values weren't wrapped, opening the door to code execution outside the sandbox. 🔥 Think of it like a restaurant where the chef accidentally left a back door open — a clever diner can slip into the kitchen and modify their meal to their liking without anyone noticing! If exploited, this vulnerability could allow an attacker to execute arbitrary code on the host system, potentially leading to a complete takeover. Imagine the chaos if someone injected malicious commands into your otherwise secure environment — it's absolutely devastating!

Put simply

Think of it like a restaurant where the chef accidentally left a back door open — a clever diner can slip into the kitchen and modify their meal to their liking without anyone noticing! This vulnerability in SandboxJS arises because function return values are not properly controlled, allowing access to the host's Function constructor. An attacker can leverage Object.values and Array.prototype.at to escape the sandbox and run malicious code at will.

What to do

If exploited, this vulnerability could allow an attacker to execute arbitrary code on the host system, potentially leading to a complete takeover. Imagine the chaos if someone injected malicious commands into your otherwise secure environment — it's absolutely devastating! Upgrade SandboxJS to version 0.8.29 immediately to close this critical gap. Additionally, review your code to ensure proper sandboxing practices are maintained. Don't forget to audit any libraries that rely on this! You've got this! 🛡️ With these steps, your environment will be much safer in no time!

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.00890 · 59.0th percentile
Weakness
CWE-74 · Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Published
2026-02-06T19:53Z
EPSS history
Timeline
  • 06 FEB 19:53Z
    SandboxJS has a Sandbox Escape
    cvelistv5