Skip to main content
Meet us at Black Hat USA 2026— Las Vegas, August 1–6Book a Meeting
Mallory
Back to intelligence
open-source-dependency-vulnerabilityproof-of-concept-releasewidely-deployed-product-advisory

Critical SandboxJS Sandbox-Escape Vulnerabilities Enabling Host Code Execution

Updated 1d agoFirst seen Feb 9, 20263 sources

Multiple critical vulnerabilities in SandboxJS—a JavaScript sandboxing library used to run untrusted code—were disclosed as enabling sandbox escape and arbitrary code execution on the host, with several issues scored CVSS 10.0. Reported flaws include CVE-2026-25520, CVE-2026-25586, CVE-2026-25587, and CVE-2026-25641, described as providing multiple paths to break out of SandboxJS’s isolation guarantees and take over the underlying runtime environment.

Technical details published for CVE-2026-25520 indicate that, prior to SandboxJS 0.8.29, function return values are not wrapped, allowing attackers to use Object.values()/Object.entries() to obtain an array containing the host’s Function constructor (e.g., via Array.prototype.at), which can then be used to execute code outside the sandbox; the issue is fixed in 0.8.29 (with a referenced upstream commit and GitHub Security Advisory). Additional reported escape vectors include manipulation of supposedly safe prototypes (e.g., overwriting Map.prototype.has via a bug in the library’s let implementation) and a host prototype pollution condition tied to unsafe property-checking logic, collectively undermining the library’s core containment model.

Share:
Critical SandboxJS Sandbox-Escape Vulnerabilities Enabling Host Code Execution
Stay ahead

Get ahead of threats like this

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.

EVENT TIMELINE

How this story unfolded

3 events from the most recent confirmed update back to the earliest known activity.

3 EVENTS
Feb 11, 20265mo ago

CVE-2026-25881 disclosed and fixed in SandboxJS 0.8.31

A separate critical SandboxJS vulnerability, CVE-2026-25881, was disclosed affecting versions prior to 0.8.31. The flaw allowed protected global prototype references to lose their protection marker when placed in arrays, enabling host-side prototype pollution and possible remote code execution; maintainers fixed it in version 0.8.31.

Feb 6, 20265mo ago

CVE-2026-25520 publicly disclosed as SandboxJS sandbox escape

A public advisory disclosed CVE-2026-25520, a critical SandboxJS flaw caused by unwrapped function return values that let attackers recover the host Function constructor and execute code outside the sandbox. The issue was mapped to SandboxJS versions before 0.8.29 and assigned a high-severity CVSS vector.

SandboxJS fixes four critical sandbox escape flaws in version 0.8.29

SandboxJS released version 0.8.29 to fix four critical vulnerabilities affecting versions 0.8.28 and earlier, including CVE-2026-25520, CVE-2026-25586, CVE-2026-25587, and CVE-2026-25641. The flaws allowed sandbox escape and arbitrary code execution on the host system.

The operational view lives in Mallory

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t — which of your assets are affected, which threat actors are using it right now, which detections to deploy, and what to do next.
Exposure mapping

Map indicators from this story to your assets and identify affected systems in minutes.

Threat actor evidence

Every observed campaign, victim, and pivot linked to actors named in this story.

Associated malware

Malware, exploits, and IOCs connected to the activity described here.

Detection signatures

YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.

Scheduled alerts

Get matching new stories delivered to your team as they break — not the next morning.

AI threads

Ask questions about this story and take action on the answers.

Critical SandboxJS Sandbox-Escape Vulnerabilities Enabling Host Code Execution | Mallory