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.

Get ahead of threats like this
Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
How this story unfolded
3 events from the most recent confirmed update back to the earliest known activity.
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.
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.
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.
Related entities
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
Sources
2 references tracked. Mallory keeps watching after this page renders.
See the full picture, correlated to your attack surface.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.


