Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
CriticalPublic exploit

Sandbox escape via host prototype pollution in SandboxJS (< 0.8.31)

IdentifiersCVE-2026-25881CWE-1321· Improperly Controlled Modification…

SandboxJS (the @nyariv/sandboxjs JavaScript sandboxing library) contains a sandbox escape in versions prior to 0.8.31 where the library’s global-object protection mechanism (an isGlobal taint/flag intended to prevent writes to host/system objects) can be bypassed. By placing a protected global prototype reference (e.g., Map.prototype / Set.prototype) into an array literal and then retrieving it, the isGlobal protection is stripped (“laundered” through the array intermediary). The attacker can then directly mutate host built-in prototypes from within the sandbox, resulting in persistent host-side prototype pollution. This can become RCE in the embedding application when polluted properties are later consumed by sensitive sinks (example gadget: execSync(obj.cmd)). Fixed in 0.8.31.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation breaks sandbox isolation and enables persistent mutation of host built-in prototypes (prototype pollution), altering behavior of subsequently created objects in the host runtime. Depending on the host application’s use of object properties, this can lead to high-impact outcomes up to and including remote code execution (e.g., when attacker-controlled/polluted properties are used in command execution or other dangerous sinks), as well as broad integrity compromise and potential confidentiality/availability impact consistent with the published CVSS vector (S:C, C/I/A:H).

Mitigation

If you can’t patch tonight, do this now.

If immediate upgrade is not possible: (1) Freeze built-in prototypes in the host process before executing untrusted code (defense-in-depth; may be breaking). (2) Do not run untrusted SandboxJS code in the same process as sensitive operations; isolate execution in a separate process/container with least privilege. (3) Audit and harden host code paths for gadgetable sinks that consume object properties (e.g., exec/execSync/spawn, dynamic require, eval) and avoid using attacker-influenced properties.

Remediation

Patch, then assume compromise.

Upgrade SandboxJS / @nyariv/sandboxjs to version 0.8.31 or later, which preserves the isGlobal protection across array operations and blocks writes to built-in prototypes obtained indirectly (per the referenced fix commit).
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Nyariv@Nyariv/Sandboxjsapplication
NyarivSandboxjsapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

ACTIVITY FEED

Recent activity

12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity7

Community discussion across Reddit, Mastodon, and other social sources.