CVE-2026-34208: Sandbox escape via callable constructor path in SandboxJS
- Vendor
- Nyariv
CVE-2026-34208 affects SandboxJS, a JavaScript sandboxing library, in versions prior to 0.8.36. SandboxJS is intended to prevent direct assignment to host global objects such as Math.random, but that protection can be bypassed through an exposed callable constructor path using this.constructor.call(target, attackerObject). In the vulnerable condition, this.constructor resolves to the internal SandboxGlobal function, and because Function.prototype.call remains permitted, attacker-controlled code can invoke that path to assign arbitrary properties onto host global objects. Those unauthorized mutations are not confined to a single sandbox execution and can persist across sandbox instances within the same process, breaking sandbox isolation guarantees.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows untrusted sandboxed code to bypass SandboxJS global-object assignment restrictions and modify host global objects. This compromises the integrity of the host execution environment and can affect confidentiality and availability depending on what globals are altered. Because the changes persist across sandbox instances in the same process, one malicious execution can taint subsequent sandbox sessions, enabling cross-session contamination, policy bypass, and broader compromise of applications relying on SandboxJS for isolation. The provided CVSS vector indicates high confidentiality and integrity impact with low availability impact and changed scope.
Mitigation
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, do not execute untrusted code with vulnerable SandboxJS versions. Reduce exposure by isolating sandbox executions in separate processes or short-lived workers so host global mutations cannot persist across tenants or sessions in the same process. Where feasible, harden or freeze critical global objects and monitor for unexpected mutation of host globals. These are compensating controls only; the definitive fix is upgrading to 0.8.36 or later.
Remediation
Patch, then assume compromise.
Upgrade SandboxJS to version 0.8.36 or later, which fixes the exposed callable constructor path that allowed writes to host global objects. Replace vulnerable versions prior to 0.8.36 in all deployments, including transitive dependencies and embedded copies. After upgrading, restart affected processes to clear any malicious mutations that may already have been written into host global objects by prior exploitation.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-34208 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2026-34208 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-34208?
- Yes. As of Sep 25, 2026, Mallory has reports of a public exploit for CVE-2026-34208.
- Is there a patch for CVE-2026-34208?
- Upgrade SandboxJS to version 0.8.36 or later, which fixes the exposed callable constructor path that allowed writes to host global objects. Replace vulnerable versions prior to 0.8.36 in all deployments, including transitive dependencies and embedded copies.
- What products are affected by CVE-2026-34208?
- Nyariv Sandboxjs.
- How severe is CVE-2026-34208?
- CVE-2026-34208 has a CVSS v3.1 score of 10.0 (Critical) and an EPSS score of 0.58% (49th percentile) as of Sep 25, 2026.
Recent activity
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.