# CVE-2026-92940: vm2 3.11.3 through 3.11.6 HTTPS Credential Exposure via globalAgent

- Severity: Critical 10.0 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-09-17T13:46:04.218Z
- Modified: 2026-10-01T15:45:05.647Z
- Also known as: GHSA-h85j-hv3c-qfgq
- Weaknesses: CWE-668
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

## Description

vm2 versions 3.11.3 through 3.11.6 expose the host process's real https.globalAgent to sandboxed code when a NodeVM is explicitly configured to allow require('https'). The builtin loader wraps host modules in a read-only proxy, but method calls such as Agent.prototype.on() are forwarded to the underlying host object, so sandbox code can register a listener for the agent's 'free' event. When an unrelated host HTTPS request releases a pooled connection, the listener receives the live host request options and the host TLSSocket, allowing sandboxed code to read the host's Authorization header and private destination host/port, attach a data listener to the released socket and read subsequent host response bodies in plaintext, and issue attacker-chosen authenticated requests using the stolen credentials. The issue is fixed in 3.11.7.

(As written by CVE List.)

## Affected

- patriksimek vm2: from 3.11.3 before 3.11.7 (not affected: 3.11.7)
- vm2 (npm): from 3.11.3 before 3.11.7

## Every score

- VulnCheck: CVSS:4.0 10.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L`
- VulnCheck: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L`
- GitHub: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L`

## References

- <https://github.com/patriksimek/vm2/security/advisories/GHSA-h85j-hv3c-qfgq> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/vm2-3.11.3-through-3.11.6-https-credential-exposure-via-globalagent> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-92940> (advisory)
- <https://github.com/patriksimek/vm2/commit/aa146a77f859325e079f3bfbfe6d8309af483daa> (web)
- <https://github.com/patriksimek/vm2> (package)
- <https://github.com/patriksimek/vm2/releases/tag/v3.11.7> (web)

## Sources

- CVE List: [CVE-2026-92940](https://www.cve.org/CVERecord?id=CVE-2026-92940), CVE Terms of Use, modified 2026-09-17
- GitHub Advisory Database: [GHSA-h85j-hv3c-qfgq](https://github.com/advisories/GHSA-h85j-hv3c-qfgq), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-92940](https://nvd.nist.gov/vuln/detail/CVE-2026-92940), Public domain, modified 2026-09-17

---

Page: https://cve.day/CVE-2026-92940 · Whole record: https://cve.day/CVE-2026-92940.json · Rebuilt by cve.day 2026-11-25T22:59:39.244Z
