# GHSA-pc5p-h8pf-mvwp: Machine-In-The-Middle in https-proxy-agent

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-04-16T03:14:56.000Z
- Modified: 2023-11-01T20:54:11.000Z
- Weaknesses: CWE-300

## Description

Versions of `https-proxy-agent` prior to 2.2.3 are vulnerable to Machine-In-The-Middle. The package fails to enforce TLS on the socket if the proxy server responds the to the request with a HTTP status different than 200. This allows an attacker with access to the proxy server to intercept unencrypted communications, which may include sensitive information such as credentials.


## Recommendation

Upgrade to version 3.0.0 or 2.2.3.

(As written by GitHub Advisory Database.)

## Affected

- https-proxy-agent (npm): before 2.2.3

## References

- <https://github.com/TooTallNate/node-https-proxy-agent/commit/36d8cf509f877fa44f4404fce57ebaf9410fe51b> (web)
- <https://hackerone.com/reports/541502> (web)
- <https://snyk.io/vuln/SNYK-JS-HTTPSPROXYAGENT-469131> (web)
- <https://www.npmjs.com/advisories/1184> (web)

## Sources

- GitHub Advisory Database: [GHSA-pc5p-h8pf-mvwp](https://github.com/advisories/GHSA-pc5p-h8pf-mvwp), CC-BY-4.0, modified 2023-11-01

---

Page: https://cve.day/GHSA-pc5p-h8pf-mvwp · Whole record: https://cve.day/GHSA-pc5p-h8pf-mvwp.json · Rebuilt by cve.day 2026-11-25T22:56:46.112Z
