CVE Catalog

CVE-2026-140868

LowCVSS 3.7
Published: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.33%

28th percentile - higher than 28% of all known CVEs

Summary

In the httpx2 library (versions before 2.18.0), when following a redirect to a different origin, the Authorization and Cookie headers are removed but Proxy-Authorization is kept. A client that sets Proxy-Authorization in its headers sends that credential to the redirect target, where an attacker can capture it.

Risk Assessment

An attacker controlling the redirecting response or on the path could capture proxy credentials, potentially leading to unauthorized access. The risk affects applications with follow_redirects enabled and Proxy-Authorization set in headers.

Recommendation

Update httpx2 to version 2.18.0 or later. Until then, provide proxy credentials in the proxy URL instead of a header, or disable follow_redirects.

Other vulnerabilities in httpx2

See all
Original NVD description (English source)

When following a redirect to a different origin, httpx2 removes the Authorization and Cookie headers but keeps Proxy-Authorization. A client that sets Proxy-Authorization in its client or request headers sends that credential to the redirect target, where an attacker who controls the redirecting response, or an on-path attacker on plain HTTP, can capture it. Applications are affected when all of the following hold: follow_redirects=True is set (the default is False), Proxy-Authorization is passed in headers rather than through the proxy parameter, and the redirect target is not reached through the same forward proxy that consumed the header on the first request. Proxy credentials given in the proxy URL are not affected. Affected versions are httpx2 before 2.18.0. The issue is fixed in 2.18.0, which removes Proxy-Authorization whenever a redirect changes origin. Until then, give proxy credentials in the proxy URL instead of a header, or leave follow_redirects off.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS