Skip to content
OpenAdvisories
Medium · 6.9 CVE-2026-34217 EUVD-2026-19301GHSA-hg73-4w7g-q96w

SandboxJS has a Sandbox Escape via Prop Object Leak in New Handler

Published Apr 6, 2026 · Updated Apr 6, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
nyariv SandboxJS < 0.8.36 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @nyariv/sandboxjs < 0.8.36 0.8.36 GHSA-hg73-4w7g-q96w

References