nday
GHSA-2cm2-m3w5-gp2f

vm2 has access to `VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL`

Disclosed . Patched: fixed in vm2 3.11.2. None of the four PoC sources lists it. Not in CISA KEV.

why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

remote, unauthenticated
AV:N, PR:N, UI:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N (CVSS 3.1) from GitHub advisory GHSA-2cm2-m3w5-gp2f
network
AV:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N (CVSS 3.1) from GitHub advisory GHSA-2cm2-m3w5-gp2f
no authentication required
PR:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N (CVSS 3.1) from GitHub advisory GHSA-2cm2-m3w5-gp2f
no user interaction
UI:N in CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N (CVSS 3.1) from GitHub advisory GHSA-2cm2-m3w5-gp2f
npm
GHSA-2cm2-m3w5-gp2f: npm packages vm2
stage
PAT
disclosed
cvss
5.3 MEDIUM v3.1

Lifecycle

x axis UTC; dot = exact minute, wide bar = date only, hollow = unknown or inferred.
time unknown
DISdisclosed
05-08T16:22Z
PATpatch
vm2 3.11.2
ANAanalysis
no record yet
POCPoC
no record yet
ITWexploited
no record yet
KEVKEV
no record yet

Summary

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

Original text of GitHub advisory GHSA-2cm2-m3w5-gp2f, shown as published.

Exploit conditions

What an attack needs, read from the CVSS vector.
Attack vector AV:N
Network: the attacker only needs to reach it over the network
Attack complexity AC:L
Low: no special conditions; the attacker can expect repeatable success
Privileges required PR:N
None: no account or authorization needed
User interaction UI:N
None: no action by anyone other than the attacker

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

CVSS 3.1 vector from GitHub advisory GHSA-2cm2-m3w5-gp2f.

Event log

+DISdisclosed

ghsa reported a disclosure.

src ghsa · nday , bulk import · raw
{
  "id": 473863,
  "type": "disclosed",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-2cm2-m3w5-gp2f",
  "occurred_at": "2026-05-08T16:22:52Z",
  "observed_at": "2026-11-16T19:07:30.503253Z",
  "is_backfill": true,
  "dedupe_key": "GHSA-2cm2-m3w5-gp2f",
  "detail": {
    "state": "PUBLISHED",
    "ghsa_id": "GHSA-2cm2-m3w5-gp2f",
    "withdrawn_at": null
  }
}
time unknownsource gave no time
+PATpatch released

The advisory gives fixed version vm2 3.11.2. Fix commits are linked. Advisory published ; the patch's own release time is not recorded.

src ghsa · nday , bulk import · raw
{
  "id": 473864,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-2cm2-m3w5-gp2f",
  "occurred_at": null,
  "observed_at": "2026-11-16T19:07:30.503253Z",
  "is_backfill": true,
  "dedupe_key": "GHSA-2cm2-m3w5-gp2f",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 5.3,
        "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
      },
      "cvss_v4": {
        "score": 0.0,
        "vector_string": null
      }
    },
    "cwes": [
      {
        "name": "Protection Mechanism Failure",
        "cwe_id": "CWE-693"
      }
    ],
    "ghsa_id": "GHSA-2cm2-m3w5-gp2f",
    "packages": [
      {
        "name": "vm2",
        "ecosystem": "npm",
        "first_patched_version": "3.11.2",
        "vulnerable_version_range": "< 3.11.2"
      }
    ],
    "severity": "medium",
    "references": [
      "https://github.com/patriksimek/vm2/security/advisories/GHSA-2cm2-m3w5-gp2f",
      "https://github.com/patriksimek/vm2/releases/tag/v3.11.2",
      "https://github.com/patriksimek/vm2/commit/99d410bb7e0d607c56e68b420720a586dc0dd300",
      "https://github.com/advisories/GHSA-2cm2-m3w5-gp2f"
    ],
    "fix_commit_urls": [
      "https://github.com/patriksimek/vm2/commit/99d410bb7e0d607c56e68b420720a586dc0dd300"
    ],
    "github_reviewed_at": "2026-05-08T16:22:52Z",
    "advisory_updated_at": "2026-11-05T21:42:53Z",
    "source_code_location": "https://github.com/patriksimek/vm2",
    "advisory_published_at": "2026-05-08T16:22:52Z"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

Discussion

0 comments

No comments yet.