CVE-2026-140868

NameCVE-2026-140868
DescriptionWhen 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1156568

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-httpx2 (PTS)forky, sid2.15.1-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-httpx2source(unstable)(unfixed)1156568

Notes

https://github.com/pydantic/httpx2/security/advisories/GHSA-5r6f-m46c-mphm

Search for package or bug name: Reporting problems