SandboxJS Sandbox Escape via Unprotected AsyncFunction Constructor (CVE-2026-23830)
CVE-2026-23830 is a maximum-severity (CVSS 10.0) sandbox-escape vulnerability in SandboxJS, a library intended to safely execute untrusted JavaScript. The issue allows attackers to break out of the sandbox and achieve arbitrary code execution on the host by leveraging gaps in SandboxJS’s “safe replacement” model for dangerous constructors.
The flaw stems from SandboxJS mapping the global Function constructor to a sandboxed equivalent, but (in affected versions) failing to similarly isolate the “Async” and generator constructor families: AsyncFunction, GeneratorFunction, and AsyncGeneratorFunction. Although these constructors are not directly exposed as globals, they can be obtained via an instance’s .constructor (e.g., (async () => {}).constructor); because the executor returns the native host AsyncFunction when it is not present in the safe-replacement map, an attacker can create new functions that execute in the global scope and bypass sandbox restrictions. SandboxJS 0.8.26 is reported as the patched version.

Get ahead of threats like this
Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
How this story unfolded
2 events from the most recent confirmed update back to the earliest known activity.
CVE-2026-23830 disclosure details SandboxJS sandbox escape
Public disclosure described CVE-2026-23830 as a maximum-severity flaw in SandboxJS caused by missing protections for asynchronous and generator function constructors. Attackers could access the native host AsyncFunction via the .constructor property and escape the sandbox to gain full host access.
SandboxJS releases version 0.8.26 to fix CVE-2026-23830
SandboxJS fixed a critical sandbox escape vulnerability in version 0.8.26 by properly isolating AsyncFunction, GeneratorFunction, and AsyncGeneratorFunction within its sandboxing mechanism. The flaw affected all versions prior to 0.8.26 and could allow arbitrary code execution outside the sandbox.
Sources
2 references tracked. Mallory keeps watching after this page renders.
See the full picture, correlated to your attack surface.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.


