CVE-2026-34208

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.
References
Configurations

Configuration 1 (hide)

cpe:2.3:a:nyariv:sandboxjs:*:*:*:*:*:node.js:*:*

History

26 Oct 2026, 22:10

Type Values Removed Values Added
Summary
  • (es) SandboxJS es una biblioteca de sandboxing de JavaScript. Antes de 0.8.36, SandboxJS bloquea la asignación directa a objetos globales (por ejemplo, Math.random = ...), pero esta protección puede ser eludida a través de una ruta de constructor invocable expuesta: this.constructor.call(target, attackerObject). Debido a que this.constructor se resuelve en la función interna SandboxGlobal y Function.prototype.call está permitido, el código del atacante puede escribir propiedades arbitrarias en objetos globales del host y persistir esas mutaciones a través de instancias de sandbox en el mismo proceso. Esta vulnerabilidad está corregida en 0.8.36.

Information

Published : 2026-04-06 16:16

Updated : 2026-10-26 22:10


NVD link : CVE-2026-34208

Mitre link : CVE-2026-34208

CVE.ORG link : CVE-2026-34208


JSON object : View

Products Affected

nyariv

  • sandboxjs
CWE
CWE-693

Protection Mechanism Failure

CWE-915

Improperly Controlled Modification of Dynamically-Determined Object Attributes