CVE-2026-34208: Vulnerability in Nyariv Sandboxjs
Critical. 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...
npm, CWE-693, CWE-915
- Exploitation
- None confirmed
- Severity
- 10 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-2gg9-6p7w-6cpj
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L
- Weakness
- CWE-693, CWE-915
- Published
- 3 Apr 2026
- Last change
- 26 Oct 2026
- Ecosystem
- npm
Affected products
Affected versions and the first fixed release
- Nyariv Sandboxjs Before 0.8.36. Fixed in 0.8.36
Affected packages
Vulnerable version ranges and fixed releases
- @nyariv/sandboxjs npm, Affected before 0.8.36. Fixed in 0.8.36
Advisories
Vendor and security advisories
Related
- Sandboxjs vulnerabilities Recent advisories, watch this product