Skip to main content
Mallory
← Back to News
open-source-dependency-vulnerabilitywidely-deployed-product-advisoryendpoint-security-bypass

SandboxJS Sandbox Escape via Unprotected AsyncFunction Constructor (CVE-2026-23830)

Vulnerability Disclosure · 2 sources · Updated 4mo ago · First seen Jan 29, 2026

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.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events · Jan 28, 2026
  1. Jan 28, 202610mo ago

    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.

  2. Jan 28, 202610mo ago

    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.

Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.