CVE-2026-25587CWE-94

SandboxJS has a Sandbox Escape

Critical · published February 6, 2026

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

🚨 A critical flaw in SandboxJS can let attackers escape the sandbox and run their own code! Imagine a playroom where the rules are suddenly ignored. 🔥 Think of SandboxJS like a secure playroom designed to keep kids (or code) safe. But if someone finds a way to change the rules of the game, they could easily slip out and wreak havoc in the rest of the house! This vulnerability allows attackers to potentially bypass security measures and execute arbitrary JavaScript outside of the designated sandbox. If exploited, it could lead to unauthorized access to sensitive data or the entire application being compromised. This is absolutely devastating!

Put simply

Think of SandboxJS like a secure playroom designed to keep kids (or code) safe. But if someone finds a way to change the rules of the game, they could easily slip out and wreak havoc in the rest of the house! Prior to version 0.8.29, the prototype of Map was accessible within the SandboxJS environment, allowing attackers to overwrite `Map.prototype.has` and effectively escape the confines of the sandbox.

What to do

This vulnerability allows attackers to potentially bypass security measures and execute arbitrary JavaScript outside of the designated sandbox. If exploited, it could lead to unauthorized access to sensitive data or the entire application being compromised. This is absolutely devastating! Immediately update SandboxJS to version 0.8.29 or later to close this critical vulnerability. Additionally, review your application for any instances where the sandbox might be used to ensure there are no other potential security holes. Keep your code in a tight ship! You've got this! With that update, you'll have those security walls reinforced 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.00734 · 53.9th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-02-06T19:51Z
EPSS history
Timeline
  • 06 FEB 19:51Z
    SandboxJS has a Sandbox Escape
    cvelistv5