Description
SandboxJS is a JavaScript sandboxing library. Prior to 0.9.6, sandbox-defined functions expose Function.caller, allowing sandboxed code to recover the internal LispType.Call runtime callback. That callback can then be invoked with attacker-controlled fake context and obj values to extract blocked host statics, recover the real host Function constructor, and execute arbitrary host JavaScript. This vulnerability is fixed in 0.9.6.
Published: 2026-05-28
Score: 10 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SandboxJS, prior to version 0.9.6, allowed sandbox‑defined functions to expose the native Function.caller property. Through this leakage an attacker‑supplied sandbox script could retrieve the internal LispType.Call runtime callback, invoke it with fabricated context and obj parameters, extract blocked host statics, recover the real host Function constructor, and ultimately execute arbitrary host JavaScript. This flaw is a code injection vulnerability (CWE‑94) and is listed with a CVSS score of 10, indicating a full compromise of confidentiality, integrity, and availability of the host environment.

Affected Systems

The issue affects the nyariv SandboxJS library in all releases before 0.9.6. No other vendors or product versions are enumerated in the CVE data. Applications that embed SandboxJS 0.9.5 or earlier are vulnerable.

Risk and Exploitability

The vulnerability carries the maximum severity rating, underscoring the potential for complete host code takeover. The EPSS score is unavailable, but the flaw is not yet listed in the CISA KEV catalog. Based on the description, it is inferred that the likely attack vector involves an attacker who can submit or create sandbox‑defined functions, such as through user‑supplied script input. Once the internal call operation is accessed, the attacker can achieve arbitrary code execution on the host platform.

Generated by OpenCVE AI on May 28, 2026 at 19:20 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the vendor’s fix by upgrading SandboxJS to version 0.9.6 or later.
  • Ensure that the sandbox configuration prohibits exposure of Function.caller and any internal runtime callbacks, thereby preventing leakage of the Call operation.
  • Implement active monitoring and audit of sandbox interactions to detect any unexpected host code execution before a patch can be applied.

Generated by OpenCVE AI on May 28, 2026 at 19:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-g8f2-4f4f-5jqw SandboxJS has a sandbox escape via Function.caller leakage of internal call op
History

Thu, 28 May 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 28 May 2026 19:30:00 +0000

Type Values Removed Values Added
First Time appeared Nyariv
Nyariv sandboxjs
CPEs cpe:2.3:a:nyariv:sandboxjs:*:*:*:*:*:node.js:*:*
Vendors & Products Nyariv
Nyariv sandboxjs

Thu, 28 May 2026 18:00:00 +0000

Type Values Removed Values Added
Description SandboxJS is a JavaScript sandboxing library. Prior to 0.9.6, sandbox-defined functions expose Function.caller, allowing sandboxed code to recover the internal LispType.Call runtime callback. That callback can then be invoked with attacker-controlled fake context and obj values to extract blocked host statics, recover the real host Function constructor, and execute arbitrary host JavaScript. This vulnerability is fixed in 0.9.6.
Title SandboxJS: Sandbox escape via Function.caller leakage of internal call op
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 10, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H'}


Subscriptions

Nyariv Sandboxjs
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-05-28T19:32:45.499Z

Reserved: 2026-05-04T16:11:33.085Z

Link: CVE-2026-43898

cve-icon Vulnrichment

Updated: 2026-05-28T19:32:24.571Z

cve-icon NVD

Status : Modified

Published: 2026-05-28T18:16:32.837

Modified: 2026-05-28T20:16:23.810

Link: CVE-2026-43898

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-28T19:30:16Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')