Description
SandboxJS is a JavaScript sandboxing library. Prior to 0.8.36, a scope modification vulnerability exists in @nyariv/sandboxjs. The vulnerability allows untrusted sandboxed code to leak internal interpreter objects through the new operator, exposing sandbox scope objects in the scope hierarchy to untrusted code; an unexpected and undesired exploit. While this could allow modifying scopes inside the sandbox, code evaluation remains sandboxed and prototypes remain protected throughout the execution. This vulnerability is fixed in 0.8.36.
Published: 2026-04-06
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Sandbox scope escape
Action: Patch
AI Analysis

Impact

SandboxJS is a JavaScript sandboxing library. Prior to version 0.8.36, a scope modification vulnerability allows untrusted sandboxed code to leak internal interpreter objects when using the new operator. The leak exposes sandbox scope objects in the scope hierarchy to untrusted code, enabling it to read or modify the scope within the sandbox. Although execution of arbitrary code remains confined and prototypes stay protected, the flaw breaks isolation between sandboxed components and could permit privilege escalation or data tampering inside the sandbox.

Affected Systems

The vulnerable component is @nyariv/sandboxjs, packaged as SandboxJS. Versions older than 0.8.36 are affected. The library is used in Node.js applications that require sandboxing. No other vendors or products are listed.

Risk and Exploitability

The CVSS base score of 6.9 indicates moderate severity, with an EPSS below 1% suggesting low likelihood of exploitation in the current landscape. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. Exploitation demands that the attacker can execute code within the sandbox; the flaw does not permit escape to the host environment, but compromising sandbox integrity may allow an attacker to alter application behavior or data within the constrained context.

Generated by OpenCVE AI on April 9, 2026 at 19:36 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade @nyariv/sandboxjs to version 0.8.36 or later.

Generated by OpenCVE AI on April 9, 2026 at 19:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-hg73-4w7g-q96w SandboxJS: Sandbox Escape via Prop Object Leak in New Handler
History

Thu, 09 Apr 2026 18:15:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:nyariv:sandboxjs:*:*:*:*:*:node.js:*:*
Metrics cvssV3_1

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


Tue, 07 Apr 2026 00:00:00 +0000

Type Values Removed Values Added
First Time appeared Nyariv
Nyariv sandboxjs
Vendors & Products Nyariv
Nyariv sandboxjs

Mon, 06 Apr 2026 16:45:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 06 Apr 2026 15:30:00 +0000

Type Values Removed Values Added
Description SandboxJS is a JavaScript sandboxing library. Prior to 0.8.36, a scope modification vulnerability exists in @nyariv/sandboxjs. The vulnerability allows untrusted sandboxed code to leak internal interpreter objects through the new operator, exposing sandbox scope objects in the scope hierarchy to untrusted code; an unexpected and undesired exploit. While this could allow modifying scopes inside the sandbox, code evaluation remains sandboxed and prototypes remain protected throughout the execution. This vulnerability is fixed in 0.8.36.
Title SandboxJS has a Sandbox Escape via Prop Object Leak in New Handler
Weaknesses CWE-668
References
Metrics cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Nyariv Sandboxjs
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-04-06T15:40:46.653Z

Reserved: 2026-03-26T15:57:52.324Z

Link: CVE-2026-34217

cve-icon Vulnrichment

Updated: 2026-04-06T15:34:12.211Z

cve-icon NVD

Status : Analyzed

Published: 2026-04-06T16:16:34.890

Modified: 2026-04-09T18:03:17.287

Link: CVE-2026-34217

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-10T09:45:11Z

Weaknesses