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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | https://github.com/nodejs/undici | Fixed in version >= v5.5.1. Vulnerable between v4.8.2 and v5.5.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-undici | 5.6.1+dfsg1+~cs18.9.16-1 | — |
| Debian 13 | node-undici | 5.6.1+dfsg1+~cs18.9.16-1 | — |
| Debian 12 | node-undici | 5.6.1+dfsg1+~cs18.9.16-1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | undici | >= 4.8.2, < 5.5.1 | 5.5.1 | GHSA-pgw7-wx7w-2w33 |