Intel

AIKIDO-2026-873583

vm2 is vulnerable to Prototype Pollution

Prototype PollutionGHSA-3vgf-8m4q-q4qr Published 3 days ago

100

Critical Risk

This Affects:

JSvm2
3.11.0 - 3.11.7
Fixed in 3.11.8
Are you affected? Scan for Free

TL;DR

The protected-object inventory used to shield host intrinsics from the sandbox omits the typed-array, ArrayBuffer, and related binary-data prototypes. Sandboxed code walks the prototype chain to reach and mutate host Uint8Array.prototype, %TypedArray%.prototype, and ArrayBuffer.prototype. Modifying these host intrinsics corrupts host binary-data handling and undermines the sandbox boundary. The fix registers the binary-data and iterator intrinsics in the protected-object inventory so their host prototypes can no longer be modified.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you execute untrusted JavaScript in a vm2 sandbox.

Background info

vm2 is vulnerable to Prototype Pollution in versions 3.11.0 - 3.11.7.

How to fix this

Upgrade the vm2 library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform