JavaScript Library Flaws Enable Sandbox Escape and Code Execution
Vulnerability Disclosure · 2 sources · Updated 5mo ago · First seen Apr 6, 2026

Two high-severity flaws were disclosed in widely used JavaScript libraries, exposing applications to sandbox bypass and arbitrary code execution. CVE-2026-34208 affects SandboxJS before 0.8.36 and allows attacker-supplied code to evade protections on direct assignment to global objects by abusing an exposed constructor path. The bypass uses this.constructor.call(target, attackerObject) to reach the internal SandboxGlobal function while Function.prototype.call remains permitted, enabling arbitrary properties to be written into host global objects and persist across sandbox instances in the same process.
A separate issue, CVE-2026-41242, impacts protobufjs before 8.0.1 and 7.5.5, where attackers can inject arbitrary code into Protocol Buffers definition type fields and trigger execution during object decoding with a malicious schema. The flaw is tracked as CWE-94 and carries a CVSS v4 rating reflecting network-reachable exploitation with high impact to confidentiality, integrity, availability, and downstream systems. Maintainers released fixes in SandboxJS 0.8.36 and protobufjs 8.0.1 and 7.5.5.


