Description
vm2 versions from 3.11.0 before 3.11.8 fail to protect host TypedArray and ArrayBuffer prototypes from sandbox mutation. Attackers can use prototype-walking primitives to reach and modify host Uint8Array.prototype, %TypedArray%.prototype, and ArrayBuffer.prototype, causing host-created typed arrays to observe attacker-controlled properties after VM.run() returns.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| patriksimek | vm2 | 3.11.0 – < 3.11.8 | 3.11.8 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | vm2 | >= 3.11.0, < 3.11.8 | 3.11.8 | GHSA-3vgf-8m4q-q4qr |
Advisories 1
- WID-SEC-2026-3071 vm2: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 27, 2026
References
- GitHub Security Advisory (GHSA-3vgf-8m4q-q4qr) vendor-advisory
- VulnCheck Advisory: vm2 3.11.0 through 3.11.7 Prototype Pollution via TypedArray third-party-advisory