Sandbox Escape Vulnerability in SandboxJS Library by Nyariv
CVE-2026-25881
9.1CRITICAL
What is CVE-2026-25881?
The SandboxJS library, which enables JavaScript sandboxing, contains a vulnerability that permits sandboxed code to escape its confines and modify host built-in prototypes. Specifically, prior to version 0.8.31, an attacker could exploit this flaw by passing a global prototype reference through an array, bypassing the isGlobal protection flag. This manipulation leads to persistent prototype pollution, increasing the risk of remote code execution (RCE) in applications that leverage these altered properties. This issue has been addressed in version 0.8.31.
Affected Version(s)
SandboxJS < 0.8.31
