CVE-2026-25520 Details
Description
SandboxJS is a JavaScript sandboxing library. Prior to 0.8.29, The return values of functions aren't wrapped. Object.values/Object.entries can be used to get an Array containing the host's Function constructor, by using Array.prototype.at you can obtain the hosts Function constructor, which can be used to execute arbitrary code outside of the sandbox. This vulnerability is fixed in 0.8.29.
A vulnerability in SandboxJS, a JavaScript sandboxing library, allows for arbitrary code execution outside of the sandbox. This issue affects versions of SandboxJS through 0.8.28. The vulnerability arises because the return values of functions are not properly wrapped, enabling the use of Object.values or Object.entries to access the host's Function constructor. By leveraging Array.prototype.at, an attacker can retrieve the Function constructor and execute arbitrary code.
Users can upgrade 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-58jh-xv4v-pcx4 | CISA-ADP | ExploitVendor Advisory |
| https://github.com/nyariv/SandboxJS/commit/67cb186c41c78c51464f70405504e8ef0a6e43c3 | [email protected] | Patch |
| https://github.com/nyariv/SandboxJS/security/advisories/GHSA-58jh-xv4v-pcx4 | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('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] |