vm2 3.11.0 through 3.11.7 Prototype Pollution via TypedArray
patriksimek vm2
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| vm2 npm |
|
|
Original 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.
From the CVE record · VulnCheck