Skip to main content
Mallory
← Back to News
open-source-dependency-vulnerabilitywidely-deployed-product-advisoryproof-of-concept-release

JavaScript Library Flaws Enable Sandbox Escape and Code Execution

Vulnerability Disclosure · 2 sources · Updated 5mo ago · First seen Apr 6, 2026

JavaScript Library Flaws Enable Sandbox Escape and Code Execution

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.

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.

4 events · Apr 6, 2026 – Apr 18, 2026
  1. Apr 18, 20267mo ago

    protobufjs releases 8.0.1 and 7.5.5 to patch CVE-2026-41242

    The vulnerability record states that protobufjs versions 8.0.1 and 7.5.5 remediate CVE-2026-41242. References for the fix include GitHub commits, release tags, and a GitHub Security Advisory.

  2. Apr 18, 20267mo ago

    protobufjs arbitrary code execution flaw disclosed as CVE-2026-41242

    CVE-2026-41242 was published for protobufjs, affecting versions prior to 8.0.1 and 7.5.5. The issue allows attackers to inject arbitrary code into protobuf definition type fields, which then executes during object decoding.

  3. Apr 6, 20268mo ago

    SandboxJS 0.8.36 fixes CVE-2026-34208

    SandboxJS version 0.8.36 was identified as the fix for CVE-2026-34208. The patched release addresses the sandbox integrity escape that enabled modification of host global objects.

  4. Apr 6, 20268mo ago

    SandboxJS sandbox escape vulnerability disclosed as CVE-2026-34208

    A vulnerability in SandboxJS affecting versions prior to 0.8.36 was published as CVE-2026-34208. The flaw allows attackers to bypass sandbox protections via an exposed constructor call path and write arbitrary properties into host global objects, with changes persisting across sandbox instances in the same process.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →
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.