CVE-2026-25586CWE-74

SandboxJS has a Sandbox Escape via Prototype Whitelist Bypass and Host Prototype Pollution

Critical · published February 6, 2026

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

🔥 Shadowing hasOwnProperty in SandboxJS allows attackers to escape the sandbox with astonishing ease! Just like a sneaky magician pulling a rabbit from a hat, they can access restricted properties and wreak havoc! Think of it as a kitchen where the chef has hidden ingredients behind a locked door. By deceptively getting a key made, a crafty intruder can open that door and access all the secret recipes, causing serious chaos! An attacker could manipulate the sandboxed environment to access and modify the host's Object.prototype, leading to devastating consequences such as data manipulation or persistent cross-sandbox impacts. This could compromise the integrity of applications relying on this library, resulting in a loss of trust and potential data breaches.

Put simply

Think of it as a kitchen where the chef has hidden ingredients behind a locked door. By deceptively getting a key made, a crafty intruder can open that door and access all the secret recipes, causing serious chaos! This vulnerability allows an attacker to disable prototype whitelist enforcement by shadowing the hasOwnProperty method on a sandbox object. This results in unauthorized access to sensitive prototype properties, bypassing the intended protections of the SandboxJS library.

What to do

An attacker could manipulate the sandboxed environment to access and modify the host's Object.prototype, leading to devastating consequences such as data manipulation or persistent cross-sandbox impacts. This could compromise the integrity of applications relying on this library, resulting in a loss of trust and potential data breaches. Immediate action is crucial! Upgrade to SandboxJS version 0.8.29 to close this escape route and ensure prototype protections are enforced. Additionally, consider reviewing your own usage of sandboxing libraries to prevent similar vulnerabilities in the future. You've got this! Stay vigilant and patch your systems to keep the internet safe and sound! 🛡️

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-74 · Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Published
2026-02-06T19:54Z
EPSS history
Timeline
  • 06 FEB 19:54Z
    SandboxJS has a Sandbox Escape via Prototype Whitelist Bypass and Host Prototype Pollution
    cvelistv5