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-26954: CWE-94: Improper Control of Generation of Code ('Code Injection') in nyariv SandboxJS

0
Critical
VulnerabilityCVE-2026-26954cvecve-2026-26954cwe-94
Published: Fri Mar 13 2026 (03/13/2026, 15:51:13 UTC)
Source: CVE Database V5
Vendor/Project: nyariv
Product: SandboxJS

Description

SandboxJS is a JavaScript sandboxing library. Prior to 0.8.34, it is possible to obtain arrays containing Function, which allows escaping the sandbox. Given an array containing Function, and Object.fromEntries, it is possible to construct {[p]: Function} where p is any constructible property. This vulnerability is fixed in 0.8.34.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/20/2026, 23:24:51 UTC

Technical Analysis

CVE-2026-26954 is a critical vulnerability classified under CWE-94 (Improper Control of Generation of Code), affecting the nyariv SandboxJS JavaScript sandboxing library versions prior to 0.8.34. SandboxJS is designed to isolate and securely execute untrusted JavaScript code by restricting access to dangerous functions and objects. However, this vulnerability arises because attackers can obtain arrays containing the JavaScript Function constructor, which allows dynamic code execution. By combining this with Object.fromEntries, an attacker can craft an object with a property whose key is any constructible property and whose value is the Function constructor, effectively escaping the sandbox restrictions. This escape enables arbitrary code execution outside the sandbox, compromising the security guarantees SandboxJS aims to provide. The vulnerability requires no authentication or user interaction and can be exploited remotely if the sandboxed environment processes attacker-controlled input. The CVSS v3.1 score is 10.0 (critical), reflecting the ease of exploitation and the severe impact on confidentiality, integrity, and availability. The issue was publicly disclosed on March 13, 2026, and fixed in version 0.8.34 of SandboxJS. No known exploits in the wild have been reported yet, but the critical nature demands immediate attention.

Potential Impact

The impact of CVE-2026-26954 is severe for organizations using vulnerable versions of SandboxJS. Successful exploitation allows attackers to break out of the sandbox environment, leading to arbitrary code execution on the host system. This can result in full system compromise, data theft, unauthorized access to sensitive information, and disruption of services. Since SandboxJS is used to safely run untrusted JavaScript code, this vulnerability undermines the fundamental security model, potentially affecting web applications, development tools, and server-side JavaScript environments that rely on sandboxing for security. The vulnerability's remote exploitability without authentication or user interaction increases the risk of widespread attacks. Organizations handling sensitive data or operating critical infrastructure with SandboxJS integration face heightened risks of data breaches, service outages, and reputational damage.

Mitigation Recommendations

To mitigate CVE-2026-26954, organizations should immediately upgrade all instances of nyariv SandboxJS to version 0.8.34 or later, where the vulnerability is patched. Additionally, review and audit any custom sandboxing implementations or wrappers around SandboxJS to ensure they do not inadvertently expose the Function constructor or allow Object.fromEntries misuse. Implement strict input validation and sanitization for any data processed within sandboxed environments to reduce the risk of injection attacks. Employ runtime monitoring and anomaly detection to identify suspicious code execution patterns indicative of sandbox escapes. Where possible, isolate sandboxed environments further using containerization or virtualization to limit the blast radius of potential exploits. Maintain an inventory of all applications and services using SandboxJS to ensure comprehensive patching. Finally, stay informed about updates from the vendor and security advisories related to SandboxJS and similar sandboxing libraries.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-02-16T22:20:28.611Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69b45b752f860ef943872ec1

Added to database: 3/13/2026, 6:46:13 PM

Last enriched: 3/20/2026, 11:24:51 PM

Last updated: 4/27/2026, 11:38:46 PM

Views: 182

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 for AI refresh and higher limits.

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

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses