MediumGHSA-2cm2-m3w5-gp2fCVE-2026-92963
vm2 has access to `VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL`
Published 8 May 2026 · Updated 5 Nov 2026
Is your project on an affected vm2?
Look after several JavaScript apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
vm2npm
- Affected
- <3.11.2
- Fixed in
- 3.11.2
Update to the fixed version for your release line, for example:
npm install vm2@3.11.2Details
Summary
https://github.com/patriksimek/vm2/security/advisories/GHSA-wp5r-2gw5-m7q7 is not fully patched.
Details
It is still possible to get access to VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL.
PoC
const {VM} = require("vm2");
const vm = new VM();
console.log(vm.run(`
globalThis['VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL']
`));Is GHSA-2cm2-m3w5-gp2f in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected vm2, and gives you the command that fixes it.
More advisories for vm2
- CriticalCVE-2026-93605vm2 contains a sandbox escape vulnerability · 7 Oct 2026
- CriticalCVE-2026-100721vm2: NodeVM custom resolution bypasses external path boundaries · 5 Oct 2026
- HighCVE-2026-100722vm2: Host Promise rejection from an exposed constructor can terminate the vm2 host process · 5 Oct 2026
- MediumCVE-2026-100723vm2: NodeVM zlib Buffers expose pooled host memory across the VM boundary · 5 Oct 2026
- HighCVE-2026-92959vm2: `allowAsync: false` can be bypassed through Promise thenable assimilation in VM and NodeVM · 5 Oct 2026
- CriticalCVE-2026-92955vm2: Sandbox Escape (NodeVM) · 5 Oct 2026
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.