CVEvulnerability

CVE-2026-34208

10.0 CRITICAL Published 2026-04-06 Modified 2026-10-26 Official page ↗
Status
Analyzed
Published
2026-04-06
Last modified
2026-10-26
Assigner
[email protected]
CVSS 3.1 ([email protected])
10.0 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L
CVSS 3.1 ([email protected])
10.0 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Weaknesses
CWE-693, CWE-915

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 configurations

• nyariv sandboxjs (< 0.8.36)

Related

Weakness · CWE (2)

  • CWE-693 Protection Mechanism Failure weakness
  • CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes weakness

References