Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-25587: CWE-94: Improper Control of Generation of Code ('Code Injection') in nyariv SandboxJS

0
Critical
VulnerabilityCVE-2026-25587cvecve-2026-25587cwe-94
Published: Fri Feb 06 2026 (02/06/2026, 19:51:56 UTC)
Source: CVE Database V5
Vendor/Project: nyariv
Product: SandboxJS

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.

AI-Powered Analysis

AILast updated: 02/06/2026, 20:14:52 UTC

Technical Analysis

CVE-2026-25587 is a critical vulnerability classified under CWE-94 (Improper Control of Generation of Code, or code injection) affecting the nyariv SandboxJS library, a JavaScript sandboxing tool designed to safely execute untrusted code. The vulnerability exists in versions prior to 0.8.29 due to the inclusion of Map in the SAFE_PROTOTYPES list. This inclusion allows an attacker to access and overwrite Map.prototype.has, a fundamental method used internally by the Map object. By overwriting this method, an attacker can break out of the sandbox environment, effectively escaping the isolation intended by SandboxJS. This escape enables arbitrary code execution in the host environment with no privileges required (AV:N/AC:L/PR:N/UI:N), making exploitation straightforward and highly impactful. The vulnerability affects confidentiality, integrity, and availability (all rated high), as attackers can run malicious code, manipulate data, or disrupt services. The issue was publicly disclosed on February 6, 2026, with a maximum CVSS score of 10. Although no known exploits are currently reported in the wild, the severity and ease of exploitation make it a critical threat. The fix involves removing Map from SAFE_PROTOTYPES or otherwise preventing prototype pollution and method overwriting, which was implemented in version 0.8.29.

Potential Impact

For European organizations, the impact of this vulnerability is severe. Many enterprises and service providers rely on JavaScript sandboxing libraries like SandboxJS to safely execute third-party or user-generated scripts, especially in cloud services, SaaS platforms, and web applications. Successful exploitation allows attackers to escape sandbox restrictions, leading to full remote code execution on the host system. This can result in data breaches, unauthorized access to sensitive information, service disruption, and potential lateral movement within networks. The critical nature of the vulnerability means that any unpatched system is at high risk of compromise. Given the widespread use of JavaScript and sandboxing in modern web infrastructure, the threat could affect sectors such as finance, healthcare, government, and technology companies across Europe. Additionally, the lack of required authentication or user interaction lowers the barrier for attackers, increasing the likelihood of automated exploitation attempts.

Mitigation Recommendations

1. Immediate upgrade to SandboxJS version 0.8.29 or later, where the vulnerability is fixed. 2. Audit all applications and services using SandboxJS to identify vulnerable versions. 3. Implement strict Content Security Policies (CSP) to limit the execution of untrusted scripts and reduce attack surface. 4. Employ runtime application self-protection (RASP) tools that can detect and block sandbox escape attempts. 5. Review and harden sandbox configurations to exclude unsafe prototypes or methods from exposure. 6. Monitor logs and network traffic for unusual behavior indicative of sandbox escape or code injection attempts. 7. Educate developers on secure use of sandboxing libraries and the risks of prototype pollution. 8. Consider additional isolation layers such as containerization or virtual machines for executing untrusted code. 9. Engage in threat hunting exercises focused on detecting exploitation attempts targeting SandboxJS environments.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-02-03T01:02:46.715Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69864849f9fa50a62f2e035b

Added to database: 2/6/2026, 8:00:09 PM

Last enriched: 2/6/2026, 8:14:52 PM

Last updated: 2/6/2026, 9:08:44 PM

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats