CVE-2026-92963
JSON

6.9medium

vm2 before 3.11.2 Information Disclosure via Internal State

Severity
6.9medium CVSS:4.0 by VulnCheck
Exploit likelihood
0.26% (higher than 18% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck
Also known as
GHSA-2cm2-m3w5-gp2f

Description

vm2 versions before 3.11.2 fail to properly restrict access to the VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL global variable. Attackers can access this internal state object through globalThis to retrieve sensitive sandbox internals.

Affected

Product or packageVersionsReported by
patriksimek vm2before 3.11.2
Not affected: 3.11.2
CVE List
vm2 (npm)before 3.11.2GitHub Advisory Database

All scores

VulnCheck6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
VulnCheck5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Classification

CWE-227CWE-693

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

vm2 versions before 3.11.2 fail to properly restrict access to the VM2_INTERNAL_STATE_DO_NOT_USE_OR_PROGRAM_WILL_FAIL global variable. Attackers can access this internal state object through globalThis to retrieve sensitive sandbox internals.

GitHub Advisory Database
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']
`));

References

Sources

SourceRecordLicence
CVE ListCVE-2026-92963 changed 2026-09-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-2cm2-m3w5-gp2f changed 2026-11-05CC-BY-4.0
NVDCVE-2026-92963 changed 2026-09-18Public domain