{"id":"CVE-2022-32210","aliases":["CVE-2022-32210","GHSA-pgw7-wx7w-2w33"],"related":[],"kind":"vulnerability","state":"published","title":"ProxyAgent vulnerable to MITM","summary":"`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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"`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.","source":"cvelist"},{"lang":"en","text":"### Description\n\n`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.\n\n### Impact\n\nThis 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).\nThis 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). \n\n### Patches\n\nThis issue was patched in Undici v5.5.1.\n\n### Workarounds\n\nAt the time of writing, the only workaround is to not use `ProxyAgent` as a dispatcher for TLS Connections.","format":"markdown","source":"ghsa"},{"lang":"es","text":"\"Undici.ProxyAgent\" nunca verifica el certificado del servidor remoto, y siempre expone todos los datos de petición y respuesta al proxy. Esto significa inesperadamente que los proxies pueden MitM todo el tráfico HTTPS, y si la URL del proxy es HTTP entonces también significa que las peticiones nominalmente HTTPS son realmente enviadas por medio de texto plano HTTP entre Undici y el servidor proxy","source":"nvd"}],"published":"2022-06-17T01:02:29.000Z","modified":"2026-07-08T06:29:56.512Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:N","score":7.7,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-295"],"affected":[{"ranges":[{"version":"Fixed in version >= v5.5.1. Vulnerable between v4.8.2 and v5.5.0","status":"affected"}],"product":"https://github.com/nodejs/undici","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.8.2","status":"affected","fixed":"5.5.1"}],"ecosystem":"npm","package":"undici","purl":"pkg:npm/undici","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.8.2","fixed":"5.5.1"}],"vendor":"nodejs","product":"undici","cpe":"cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://hackerone.com/reports/1583680","tags":["exploit","issue-tracking","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/nodejs/undici/security/advisories/GHSA-pgw7-wx7w-2w33","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-32210","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"hackerone","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-32210","url":"https://www.cve.org/CVERecord?id=CVE-2022-32210","licence":"CVE Terms of Use","modified":"2024-08-03T07:32:56.020Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pgw7-wx7w-2w33","url":"https://github.com/advisories/GHSA-pgw7-wx7w-2w33","licence":"CC-BY-4.0","modified":"2026-07-08T06:29:56.512Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-32210","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-32210","licence":"Public domain","modified":"2026-06-17T04:46:52.510Z"}],"updatedAt":"2026-11-25T22:58:12.945Z","epss":{"score":0.00466,"percentile":0.42068,"date":"2026-12-01T12:00:22.000Z"}}