CVE-2026-25881CWE-1321

@nyariv/sandboxjs has host prototype pollution from sandbox via array intermediary (sandbox escape)

Critical · published February 9, 2026

CVSS v3.1
9.1
EPSS
1%
Percentile
53.8
In the wild
Unconfirmed
What it is

🚨 A crafty escape route could let attackers mess with your JavaScript environment! This sandbox escape vulnerability in SandboxJS can let malicious scripts mutate host prototypes, paving the way for chaos. 🔥 Think of this like a sneaky guest at a dinner party who manages to slip into the kitchen and rearrange the spices—they're not supposed to be in there, but once they're in, they can really change the flavor of everything served! With the ability to directly modify host built-in prototypes, an attacker could introduce persistent prototype pollution. This could lead to remote code execution (RCE) in applications that rely on these contaminated properties, potentially compromising sensitive operations and causing absolute mayhem. Imagine the havoc if a malicious command gets executed on your server!

Put simply

Think of this like a sneaky guest at a dinner party who manages to slip into the kitchen and rearrange the spices—they're not supposed to be in there, but once they're in, they can really change the flavor of everything served! This vulnerability occurs due to a flaw in how SandboxJS handles the isGlobal protection flag. Prior to version 0.8.31, attackers could manipulate array literals to escape the sandbox and modify critical prototypes, allowing for malicious behavior.

What to do

With the ability to directly modify host built-in prototypes, an attacker could introduce persistent prototype pollution. This could lead to remote code execution (RCE) in applications that rely on these contaminated properties, potentially compromising sensitive operations and causing absolute mayhem. Imagine the havoc if a malicious command gets executed on your server! Upgrade SandboxJS immediately to version 0.8.31 or later to patch this vulnerability. Review your applications to ensure no prototype pollution has occurred, and consider implementing additional security measures like input validation. 🛡️ You've got this! With these steps, you'll secure your environment in no time. 🌟

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00730 · 53.8th percentile
Weakness
CWE-1321 · Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Published
2026-02-09T21:12Z
EPSS history
Timeline
  • 09 FEB 21:12Z
    @nyariv/sandboxjs has host prototype pollution from sandbox via array intermediary (sandbox escape)
    cvelistv5