Skip to content
OpenAdvisories
High · 7.7 CVE-2022-32210 EUVD-2022-6112GHSA-pgw7-wx7w-2w33

ProxyAgent vulnerable to MITM

Published Jul 14, 2022 · Updated Aug 3, 2024 · Assigned by hackerone

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

VendorProductAffectedFixed
— 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.

ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
npm undici >= 4.8.2, < 5.5.1 5.5.1 GHSA-pgw7-wx7w-2w33

References