CVE-2026-25587 Details
Description
SandboxJS is a JavaScript sandboxing library. Prior to 0.8.29, as Map is in SAFE_PROTOYPES, it's prototype can be obtained via Map.prototype. By overwriting Map.prototype.has the sandbox can be escaped. This vulnerability is fixed in 0.8.29.
A vulnerability in SandboxJS versions prior to 0.8.29 allows for escaping the JavaScript sandbox by manipulating the prototype of Map, which is considered a safe prototype. The issue arises because the sandbox's handling of 'let' variables is flawed, creating a window for exploitation. By overwriting 'Map.prototype.has', an attacker can escape the sandbox restrictions and potentially execute arbitrary code.
Users are advised to update to SandboxJS version 0.8.29 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/nyariv/SandboxJS/security/advisories/GHSA-66h4-qj4x-38xp | CISA-ADP | ExploitVendor Advisory |
| https://github.com/nyariv/SandboxJS/commit/67cb186c41c78c51464f70405504e8ef0a6e43c3 | [email protected] | Patch |
| https://github.com/nyariv/SandboxJS/security/advisories/GHSA-66h4-qj4x-38xp | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| nyariv sandboxjs | < 0.8.29 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 18, 2026 | Initial Analysis | [email protected] |
| Feb 6, 2026 | CVE Modified | CISA-ADP |
| Feb 6, 2026 | New CVE Received | [email protected] |