Skip to main content
Mallory
← Back to News
open-source-dependency-vulnerabilityproof-of-concept-releasewidely-deployed-product-advisory

Critical SandboxJS Sandbox-Escape Vulnerabilities Enabling Host Code Execution

Vulnerability Disclosure · 3 sources · Updated 5mo ago · First seen Feb 9, 2026

Critical SandboxJS Sandbox-Escape Vulnerabilities Enabling Host Code Execution

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.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

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

3 events · Feb 6, 2026 – Feb 11, 2026
  1. Feb 11, 202610mo 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.

  2. Feb 6, 202610mo 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.

  3. Feb 6, 202610mo ago

    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.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

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, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.