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.
Analysis and contextual insights are available on OpenCVE Cloud.
No solution or workaround provided in the CVE record.
Additional remediation guidance may be available on OpenCVE Cloud.
Tracking
Sign in to view the affected projects.
No advisories yet.
Sat, 05 Dec 2026 07:45:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Pydantic
Pydantic httpx2 |
|
| Vendors & Products |
Pydantic
Pydantic httpx2 |
Fri, 04 Dec 2026 11:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | Proxy-Authorization header not stripped on cross-origin redirects leaks proxy credentials | |
| Weaknesses | CWE-200 | |
| References |
| |
| Metrics |
cvssV3_1
|
Status: PUBLISHED
Assigner: Pydantic
Published:
Updated: 2026-12-04T11:28:13.559Z
Reserved: 2026-12-04T11:23:39.754Z
Link: CVE-2026-140868
No data.
Status : Received
Published: 2026-12-04T12:18:35.147
Modified: 2026-12-04T12:18:35.147
Link: CVE-2026-140868
No data.
OpenCVE Enrichment
Updated: 2026-12-05T07:30:09Z
-
CWE-200
Exposure of Sensitive Information to an Unauthorized Actor