Skip to content
OpenAdvisories
Critical · 10.0 CVE-2026-34208 EUVD-2026-19297GHSA-2gg9-6p7w-6cpj

SandboxJS: Sandbox integrity escape

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

Description

SandboxJS is a JavaScript sandboxing library. Prior to 0.8.36, SandboxJS blocks direct assignment to global objects (for example Math.random = ...), but this protection can be bypassed through an exposed callable constructor path: this.constructor.call(target, attackerObject). Because this.constructor resolves to the internal SandboxGlobal function and Function.prototype.call is allowed, attacker code can write arbitrary properties into host global objects and persist those mutations across sandbox instances in the same process. 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-2gg9-6p7w-6cpj

References