CVE-2022-32210
mediumpriority · track · 26EPSS 0.005 · 40 %ileEURUUSEPSS · scored 2026-10-27
`Undici.ProxyAgent` never verifies the remote server's certificate, and always exposes all request & response data to the proxy. This unexpectedly means that proxies can MitM all HTTPS traffic, and if the proxy's URL is HTTP then it also means that nominally HTTPS requests are actually sent via plain-text HTTP between Undici and the proxy server.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5.4–7.7
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (4)
Products and version ranges known to be affected.
- n/a https://github.com/nodejs/undici≤ Fixed in version v5.5.1. Vulnerable between v4.8.2 and v5.5.0enisa_euvdEU
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-pgw7-wx7w-2w33ProxyAgent vulnerable to MITM2022-06-17ghsa · osvUS
### Description `Undici.ProxyAgent` never verifies the remote server's certificate, and always exposes all request & response data to the proxy. This unexpectedly means that proxies can MitM all HTTPS traffic, and if the proxy's URL is HTTP then it also means that nominally HTTPS requests are actually sent via plain-text HTTP between Undici and the proxy server. ### Impact This affects all use of HTTPS via HTTP proxy using **`Undici.ProxyAgent`** with Undici or Node's global `fetch`. In this case, it removes all HTTPS security from all requests sent using Undici's `ProxyAgent`, allowing trivial MitM attacks by anybody on the network path between the client and the target server (local network users, your ISP, the proxy, the target server's ISP, etc). This less seriously affects HTTPS via HTTPS proxies. When you send HTTPS via a proxy to a remote server, the proxy can freely view or modify all HTTPS traffic unexpectedly (but only the proxy). ### Patches This issue was patched in Undici v5.5.1. ### Workarounds At the time of writing, the only workaround is to not use `ProxyAgent` as a dispatcher for TLS Connections.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (9)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2022-32210/cnnvd
- https://github.com/nodejs/undici/security/advisories/GHSA-pgw7-wx7w-2w33cnnvd
- https://hackerone.com/reports/1583680cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2022070604cnnvd
- https://www.ibm.com/support/pages/node/6601261Patchcnnvd
- https://github.com/nodejs/undici/security/advisories/GHSA-pgw7-wx7w-2w33enisa_euvd
- https://hackerone.com/reports/1583680enisa_euvd
- https://github.com/nodejs/undici/security/advisories/GHSA-pgw7-wx7w-2w33ExploitThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan