nday
GHSA-2cm2-m3w5-gp2f

vm2 has access to `VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL`

Fecha de divulgación: . Versión corregida: vm2 3.11.2. Ninguna de las cuatro fuentes de PoC la recoge. No figura en el KEV de CISA.

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
etapa
PAT
divulgación
cvss
5.3 MEDIUM v3.1

Ciclo de vida

Eje x en UTC; punto = minuto exacto, barra ancha = solo fecha, hueco = desconocida o inferida.
fecha desconocida
DISdivulgada
05-08T16:22Z
PATparcheada
vm2 3.11.2
ANAanalizada
sin registro aún
POCPoC
sin registro aún
ITWexplotada
sin registro aún
KEVen KEV
sin registro aún

Descripción

### 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.

Registro de eventos

+DISdivulgación

ghsa notificó una divulgación.

fuente ghsa · nday , importación masiva · en bruto
{
  "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
  }
}
se desconocela fuente no indica fecha
+PATparche registrado

Versión corregida según el aviso: vm2 3.11.2. El aviso enlaza los commits de la corrección. Aviso publicado el ; no consta cuándo se publicó el parche en sí.

fuente ghsa · nday , importación masiva · en bruto
{
  "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.