CVE-2026-25520
Nyariv Sandboxjs ≤ 0.8.29
Raw vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2026-25520 is a critical-severity Injection (CWE-74) vulnerability in Nyariv Sandboxjs. Its CVSS base score is 10.0 (Critical).
Operationally, ranked in the top 40% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
The strongest mitigations our analysis identified map to SI-10 (Information Input Validation) — see the control section below for these in your framework.
Deeper analysis AI-assisted summary
Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.
CVE-2026-25520 is a critical vulnerability in SandboxJS, a JavaScript sandboxing library, affecting versions prior to 0.8.29. The issue arises because return values of functions are not properly wrapped, enabling the use of Object.values or Object.entries to obtain an array containing the host's Function constructor. Attackers can then leverage Array.prototype.at to access this constructor and execute arbitrary code outside the sandbox. The vulnerability is rated with a CVSS v3.1 base score of 10.0 (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H) and is associated with CWE-74.
Any remote attacker can exploit this vulnerability without privileges or user interaction, as long as they can supply malicious JavaScript code to the sandboxed environment. Successful exploitation allows full sandbox escape, granting the attacker the ability to execute arbitrary code on the host system with the privileges of the process running SandboxJS, potentially leading to complete compromise of the affected application or server.
The vulnerability was addressed in SandboxJS version 0.8.29. Security advisories recommend updating to this patched version immediately. Details on the fix are provided in the GitHub security advisory at https://github.com/nyariv/SandboxJS/security/advisories/GHSA-58jh-xv4v-pcx4 and the fixing commit at https://github.com/nyariv/SandboxJS/commit/67cb186c41c78c51464f70405504e8ef0a6e43c3.
OWASP Top 10 for Web (2025)
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2026-5591
Vulnerability Data
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…
more
can be used to execute arbitrary code outside of the sandbox. This vulnerability is fixed in 0.8.29.
- CWE(s)
Related Threats
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5)
Our mappings, made for this CVE.
SI-10 directly requires validation of information inputs to reject malformed or special-element content before it reaches downstream parsers.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
Security testing in development catches injection vulnerabilities before release.
Monitoring activities can identify active injection attacks after they occur.
Secure coding standards require proper neutralization of special elements, directly addressing CWE-74.
Hardening callouts derived
DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.
- No fine-grained STIG row for CWE-74, a class-level weakness, and none of its children carries one either.