CVE-2026-25587: Sandbox escape in SandboxJS via Map.prototype.has overwrite
- Vendor
- Nyariv
CVE-2026-25587 is a critical sandbox escape vulnerability in SandboxJS, a JavaScript sandboxing library. In affected versions prior to 0.8.29, the library treats Map as part of its safe prototype set, allowing sandboxed code to obtain Map.prototype directly. Due to a flaw in the library’s handling of this object, an attacker can overwrite Map.prototype.has and thereby alter security-relevant behavior relied upon by the sandbox. By tampering with this core prototype method, untrusted code can subvert the sandbox’s internal logic, break confinement, and reach execution capabilities outside the intended isolated environment.
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 a complete escape from the SandboxJS execution boundary. An attacker who can run untrusted JavaScript inside the sandbox can manipulate internal security checks and achieve arbitrary code execution in the host context. This can result in full compromise of the application component embedding SandboxJS, including execution of attacker-controlled code outside the sandbox and bypass of the library’s security policy.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, prevent or suspend execution of untrusted code through SandboxJS wherever feasible. Additional temporary hardening may reduce exposure, including restricting access to Map.prototype within the sandbox context, preventing mutation of Map.prototype.has, freezing relevant built-in objects and prototypes where compatible, and limiting access to dynamic code execution primitives. These measures are compensating controls only and should not be treated as a substitute for upgrading.
Remediation
Patch, then assume compromise.
Upgrade SandboxJS to version 0.8.29 or later. The vulnerability is fixed in 0.8.29. Any deployments using version 0.8.28 or earlier should be updated immediately, especially where SandboxJS is used to execute attacker-controlled or otherwise untrusted JavaScript.
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-25587 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-25587?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2026-25587.
- Is there a patch for CVE-2026-25587?
- Upgrade SandboxJS to version 0.8.29 or later. The vulnerability is fixed in 0.8.29.
- What products are affected by CVE-2026-25587?
- Nyariv Sandboxjs.
- How severe is CVE-2026-25587?
- CVE-2026-25587 has a CVSS v3.1 score of 10.0 (Critical) and an EPSS score of 0.70% (54th percentile) as of Oct 16, 2026.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.