CVE-2026-26954
Sandbox Escape via Function Array in SandboxJS
Publication date: 2026-03-13
Last updated on: 2026-03-17
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| nyariv | sandboxjs | to 0.8.34 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-94 | The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in SandboxJS, a JavaScript sandboxing library, in versions prior to 0.8.34. It allows an attacker to obtain arrays containing the Function object, which can be used to escape the sandbox environment. By combining such an array with Object.fromEntries, an attacker can construct an object with properties that reference the Function constructor, enabling execution of arbitrary code outside the sandbox.
How can this vulnerability impact me? :
This vulnerability can have severe impacts because it allows an attacker to escape the sandbox and execute arbitrary code. This can lead to complete compromise of the system running SandboxJS, including unauthorized access, data theft, data modification, and denial of service.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
I don't know
How can this vulnerability be detected on my network or system? Can you suggest some commands?
I don't know
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, you should upgrade SandboxJS to version 0.8.34 or later, where the issue is fixed.