Prototype pollution in vm2 - #VU146043

 

Prototype pollution in vm2 - #VU146043

Published: August 28, 2026


Vulnerability identifier: #VU146043
CSH Severity: High
CVSS v4: 8.8 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-1321
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to modify host typed-array and ArrayBuffer prototype behavior, causing integrity and availability impacts.

The vulnerability exists due to improperly controlled modification of object prototype attributes in host Uint8Array.prototype, %TypedArray%.prototype, and ArrayBuffer.prototype when running untrusted JavaScript in a default vm2 VM. A remote attacker can execute sandboxed code that reaches and mutates host prototypes to modify host typed-array and ArrayBuffer prototype behavior, causing integrity and availability impacts.

The issue crosses the sandbox boundary and affects ordinary host-created typed arrays and ArrayBuffers after VM.run() returns.


Affected software

vm2

Remediation

Install security update from vendor's website.

vm2 - update to 3.11.8

External References

Related Security Bulletins