CVE-2026-25586: Host Prototype Pollution in SandboxJS
- Vendor
- Nyariv
CVE-2026-25586 is a sandbox escape vulnerability in SandboxJS affecting versions prior to 0.8.29. The flaw arises from property-access logic that relies on hasOwnProperty checks on sandboxed objects to enforce a prototype whitelist. An attacker can shadow or replace hasOwnProperty on a sandbox object so that the check incorrectly reports success, causing whitelist enforcement in the property-access path to be skipped. This allows access to blocked prototype properties, including proto, and enables modification of the host Object.prototype. Because the polluted prototype state can affect subsequent executions, the issue can produce persistent cross-sandbox impact and undermine the isolation guarantees of the library.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an attacker to escape SandboxJS restrictions and gain access to prototype properties that should be blocked by the sandbox policy. By reaching and modifying the host Object.prototype, an attacker can perform host prototype pollution with effects that persist beyond a single sandbox instance and influence other sandboxed executions. This can lead to security policy bypass, application logic manipulation, denial of service through prototype method corruption, privilege-impacting behavior in dependent code paths, and potentially arbitrary code execution when polluted properties are later consumed by unsafe host-side gadgets.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, do not execute untrusted code with affected SandboxJS versions. Isolate execution in a separate operating-system process, container, or virtual machine with strong sandboxing controls and minimal privileges. Reduce blast radius by removing access to sensitive environment variables, host IPC, and writable filesystem locations. In surrounding host code, avoid patterns that trust inherited object properties; prefer null-prototype objects for option containers and perform explicit own-property validation using safe built-in calls rather than object-supplied hasOwnProperty methods.
Remediation
Patch, then assume compromise.
Upgrade SandboxJS to version 0.8.29 or later, which fixes the prototype whitelist bypass. Any deployment using affected versions should be updated promptly, especially where untrusted JavaScript is executed. After patching, review whether host process state may have been tainted by prior prototype pollution and restart affected services if necessary to clear polluted in-memory prototype state.
Exploits
No public exploits tracked yet. Mallory keeps watching.
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.
Frequently asked questions
- Is CVE-2026-25586 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2026-25586?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2026-25586.
- Is there a patch for CVE-2026-25586?
- Upgrade SandboxJS to version 0.8.29 or later, which fixes the prototype whitelist bypass. Any deployment using affected versions should be updated promptly, especially where untrusted JavaScript is executed.
- What products are affected by CVE-2026-25586?
- Nyariv Sandboxjs.
- How severe is CVE-2026-25586?
- CVE-2026-25586 has a CVSS v3.1 score of 10.0 (Critical) and an EPSS score of 0.69% (54th percentile) as of Oct 16, 2026.
Recent activity
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.