CVE-2026-43898: SandboxJS sandbox escape via Function.caller leading to arbitrary host JavaScript execution
- Vendor
- Nyariv
CVE-2026-43898 is a critical sandbox escape vulnerability in the @nyariv/sandboxjs JavaScript sandboxing library affecting versions prior to 0.9.6 (including 0.9.5 and earlier). Sandbox-defined functions improperly expose sensitive function properties such as Function.caller, which allows sandboxed code to recover the internal host-side runtime callback LispType.Call. Because this callback can then be invoked with attacker-controlled fake context and obj/parameter values, an attacker can abuse the runtime’s trust assumptions to extract blocked host statics, recover the real host Function constructor, and escape the sandbox boundary. Once the genuine host Function constructor is obtained, the attacker can execute arbitrary JavaScript in the host environment. Supporting context indicates the vulnerable logic is in SandboxJS property access handling, specifically in prop.ts within addOps, where access to caller, callee, and arguments was not properly blocked.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation results in a complete sandbox escape and arbitrary code execution in the host JavaScript environment. In Node.js deployments, this can lead to full remote code execution on the underlying host, including execution of system commands via built-in modules such as child_process. The impact spans confidentiality, integrity, and availability, because an attacker can access sensitive host data, modify application or system state, and disrupt service operation. The vulnerability crosses the intended isolation boundary between untrusted sandboxed code and the host runtime.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, do not process or execute untrusted JavaScript with affected SandboxJS versions. Reduce exposure by disabling any feature that accepts attacker-controlled scripts, isolating the service at the OS/container level, and applying strict runtime containment so that a sandbox escape does not directly yield host compromise. However, the primary effective mitigation is upgrading to 0.9.6 or later; no complete temporary workaround is documented beyond avoiding untrusted script execution.
Remediation
Patch, then assume compromise.
Upgrade @nyariv/sandboxjs to version 0.9.6 or later. Version 0.9.6 fixes the issue by blocking access to the dangerous function properties caller, callee, and arguments from sandboxed code, preventing leakage of the internal LispType.Call callback and the subsequent recovery of the host Function constructor.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-43898 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2026-43898 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-43898?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2026-43898.
- Is there a patch for CVE-2026-43898?
- Upgrade @nyariv/sandboxjs to version 0.9.6 or later. Version 0.9.6 fixes the issue by blocking access to the dangerous function properties caller, callee, and arguments from sandboxed code, preventing leakage of the internal LispType.Call callback and the subsequent recovery of the host Function constructor.
- What products are affected by CVE-2026-43898?
- Nyariv Sandboxjs.
- How severe is CVE-2026-43898?
- CVE-2026-43898 has a CVSS v3.1 score of 10.0 (Critical) and an EPSS score of 0.47% (42nd percentile) as of Oct 16, 2026.
Recent activity
11 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.