GHSA-2cm2-m3w5-gp2f

    Dashboard / Vulnerabilities / GHSA-2cm2-m3w5-gp2f

    GHSA-2cm2-m3w5-gp2f

    Published: 8 May 2026Last Modified: 8 May 2026

    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 ```js const {VM} = require("vm2"); const vm = new VM(); console.log(vm.run(` globalThis['VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL'] `)); ```

    Affected packages

    Package

    Name: vm2

    Purl: pkg:npm/vm2

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -3.11.2

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High