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.
Fix
Patch, vendor advisory and mitigation references on NVD 1
- https://github.com/nyariv/SandboxJS/security/advisories/GHSA-2gg9-6p7w-6cpj Exploit, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 10.0 · nyarivNVD modified 2026-10-26 22:10
Affected (CPE criteria) 1
cpe:2.3:a:nyariv:sandboxjs:*:*:*:*:*:node.js:*:*
References 1
- https://github.com/nyariv/SandboxJS/security/advisories/GHSA-2gg9-6p7w-6cpj Exploit, Vendor Advisory