Critical SandboxJS Sandbox-Escape Vulnerabilities Enabling Host Code Execution
Vulnerability Disclosure · 3 sources · Updated 5mo ago · First seen Feb 9, 2026

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.


