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

Critical SandboxJS Sandbox Escape Enables Host Remote Code Execution

Vulnerability Disclosure · 2 sources · Updated 5mo ago · First seen May 13, 2026

Critical SandboxJS Sandbox Escape Enables Host Remote Code Execution

A critical vulnerability in the npm package @nyariv/sandboxjs allows attackers to escape the JavaScript sandbox and execute arbitrary code on the host system. The issue, tracked as CVE-2026-43898, affects all versions through 0.9.5 and has been rated CVSS 10.0. Public reporting and GitHub advisory coverage describe the flaw as a sandbox escape that can be triggered without credentials or user interaction, creating a path to full host takeover when applications use the library to process untrusted JavaScript.

The bug stems from improper exposure of internal callback functionality during function property access, including caller, callee, and arguments, enabling attackers to recover the host Function constructor and run arbitrary JavaScript or system commands. Separate advisory reporting also describes a sandbox escape caused by a TOCTOU bug in key handling during property access, underscoring broader weaknesses in the package's isolation model. Maintainers released 0.9.6 to block access to the dangerous properties, and organizations using SandboxJS are being urged to upgrade immediately or stop executing untrusted code with the library.

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.

3 events · Feb 5, 2026 – May 13, 2026
  1. May 13, 20266mo ago

    SandboxJS 0.9.6 released to block dangerous property access

    The vulnerability was fixed in version 0.9.6 by blocking access to the caller, callee, and arguments properties that enabled exploitation. Users were advised to upgrade immediately or stop processing untrusted JavaScript with the library.

  2. May 13, 20266mo ago

    Critical SandboxJS RCE flaw disclosed as CVE-2026-43898

    A critical vulnerability in @nyariv/sandboxjs affecting all versions through 0.9.5 was publicly disclosed as CVE-2026-43898, with reports stating it enables sandbox escape and full remote code execution on the host without credentials or user interaction. Coverage also noted a proof-of-concept and technical details showing abuse of function property access to recover the host Function constructor.

  3. Feb 5, 202610mo ago

    SandboxJS TOCTOU sandbox escape advisory published

    A GitHub security advisory was published for a SandboxJS sandbox escape caused by a TOCTOU bug involving keys in property accesses. The advisory documents a security issue affecting the nyariv/SandboxJS project.

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.