Intel

AIKIDO-2026-729907

vm2 is vulnerable to Sandbox Escape

Sandbox EscapeGHSA-6w8r-xxw2-g3hx Published 2 days ago

99

Critical Risk

This Affects:

JSvm2
3.11.3 - 3.11.6
Fixed in 3.11.7
Are you affected? Scan for Free

TL;DR

When the node:sqlite builtin is allowed, the sandbox strips only a single node: prefix, so requesting node:node:sqlite resolves to the real host module past the read-only wrapper. The read-only wrapper also leaves dangerous callable capabilities intact. Sandboxed code instantiates DatabaseSync with extension loading enabled and calls loadExtension() on a bundled native library, causing the host process to load and execute native code. The fix corrects prefix normalization and removes the unsafe capabilities.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you allow the node:sqlite builtin in the sandbox.

Background info

vm2 is vulnerable to Sandbox Escape in versions 3.11.3 - 3.11.6.

How to fix this

Upgrade the vm2 library to the patch version.