CVE-2026-43898

SandboxJS · SandboxJS

A sandbox escape vulnerability in SandboxJS allows unauthenticated attackers to execute arbitrary host JavaScript code by leveraging an exposed internal runtime callback.

Executive summary

A critical sandbox escape vulnerability in the SandboxJS library allows unauthenticated remote attackers to achieve full code execution on the underlying host system.

Vulnerability

The library fails to properly restrict access to the Function.caller property, allowing sandboxed code to recover internal runtime callbacks. An unauthenticated attacker can invoke these callbacks with malicious parameters to escape the sandbox and execute arbitrary JavaScript on the host.

Business impact

The vulnerability carries a CVSS score of 10.0, indicating the highest level of severity. Successful exploitation allows an attacker to bypass all security boundaries of the sandbox, leading to complete system compromise, unauthorized data exfiltration, and potential lateral movement within the host environment.

Remediation

Immediate Action: Update the @nyariv/sandboxjs package to version 0.9.6 or later immediately.

Proactive Monitoring: Monitor application logs for unexpected calls to high-privilege JavaScript functions or unusual execution patterns originating from sandboxed components.

Compensating Controls: If immediate patching is not feasible, restrict the execution environment by utilizing strict Content Security Policies (CSP) and reducing the privileges of the process running the sandbox.

Exploitation status

Public Exploit Available: True

Analyst recommendation

Given the critical nature of this flaw and the availability of functional exploit code, organizations should prioritize upgrading the SandboxJS library. Failure to address this vulnerability exposes host systems to total compromise by unauthenticated actors.