CVE-2026-23830CWE-693CWE-913CWE-94

SandboxJS has Sandbox Escape via Unprotected AsyncFunction Constructor

Critical · published January 27, 2026

CVSS v3.1
10.0
EPSS
1%
Percentile
68.9
In the wild
Unconfirmed
What it is

🔥 A sneaky gap in SandboxJS lets any crafty attacker escape the sandbox, grabbing full control of your server! Think of this like a restaurant kitchen that mistakenly allows chefs to take their own utensils back to the dining area. When they do, they can whip up anything they want for the guests, completely ignoring the head chef's strict menu! An attacker could potentially execute any code outside the sandbox, leading to absolute chaos — they could access sensitive data, alter files, or even bring the entire server down. This vulnerability is absolutely devastating and puts your entire application at risk!

Put simply

Think of this like a restaurant kitchen that mistakenly allows chefs to take their own utensils back to the dining area. When they do, they can whip up anything they want for the guests, completely ignoring the head chef's strict menu! This vulnerability in versions prior to 0.8.26 of SandboxJS occurs because the `AsyncFunction` constructor wasn't properly isolated within the sandbox. When accessed, it points back to the native host function, allowing attackers to execute code outside the sandbox context, leading to remote code execution.

What to do

An attacker could potentially execute any code outside the sandbox, leading to absolute chaos — they could access sensitive data, alter files, or even bring the entire server down. This vulnerability is absolutely devastating and puts your entire application at risk! Immediately upgrade SandboxJS to version 0.8.26 to close this loophole. It's also a good idea to review your sandbox configurations and ensure no other constructors are left unprotected. Don't wait — secure your environment now! You've got this! Follow these steps, and you'll be on your way to locking it down in no time! 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01237 · 68.9th percentile
Weaknesses
CWE-693 · Protection Mechanism Failure; CWE-913 · Improper Control of Dynamically-Managed Code Resources; CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-01-27T23:32Z
EPSS history
Timeline
  • 27 JAN 23:32Z
    SandboxJS has Sandbox Escape via Unprotected AsyncFunction Constructor
    cvelistv5