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

SandboxJS Sandbox Escape via Host Prototype Pollution (CVE-2026-25881)

Vulnerability Disclosure · 2 sources · Updated 5mo ago · First seen Feb 11, 2026

SandboxJS Sandbox Escape via Host Prototype Pollution (CVE-2026-25881)

CVE-2026-25881 is a critical sandbox-escape flaw in SandboxJS (@nyariv/sandboxjs) that allows sandboxed JavaScript to mutate host built-in prototypes (e.g., Map.prototype, Set.prototype) and cause persistent host-side prototype pollution. The issue stems from SandboxJS’s isGlobal protection mechanism: when a global prototype reference is placed into an array literal and then retrieved, the isGlobal “taint” is stripped, enabling direct prototype mutation from within the sandbox. The vulnerability affects versions prior to 0.8.31 and is fixed in 0.8.31; CVSS v3.1 is reported as AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H and the weakness is mapped to CWE-1321.

Public reporting indicates a working proof-of-concept (PoC) is available demonstrating multiple exploitation scenarios, including adding attacker-controlled properties to host prototypes and overwriting built-in functions. While the sandbox escape itself is the core impact, remote code execution is application-dependent: if the host application later uses polluted properties in sensitive sinks (example gadget: execSync(obj.cmd)), an attacker can potentially execute system commands (e.g., id). Organizations using SandboxJS to run untrusted code should prioritize upgrading to 0.8.31 and review host code paths for dangerous use of object properties that could be influenced via prototype pollution.

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 9, 2026 – Feb 11, 2026
  1. Feb 11, 202610mo ago

    Researcher publishes PoC for SandboxJS host takeover scenarios

    A researcher identified as k14uz released a working proof of concept showing persistent prototype modification, overwriting built-ins, and command execution when polluted properties are later used by the host. The PoC publicized practical exploitation paths for CVE-2026-25881.

  2. Feb 9, 202610mo ago

    SandboxJS 0.8.31 released to fix CVE-2026-25881

    The issue was fixed in SandboxJS version 0.8.31, with upstream references including a security advisory and a fixing commit. Users were advised to upgrade from affected versions up to 0.8.30.

  3. Feb 9, 202610mo ago

    SandboxJS prototype pollution sandbox escape is disclosed as CVE-2026-25881

    A vulnerability affecting SandboxJS versions before 0.8.31 was disclosed as CVE-2026-25881. The flaw allows sandboxed code to mutate host built-in prototypes through an array intermediary, creating persistent host-side prototype pollution and possible remote code execution in vulnerable host applications.

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.