CVE-2026-140868 — pydantic httpx2
One of 3 pydantic httpx2 vulnerabilities published together by NVD: our article covers all of them.
WebVulnerabilitiesSummary
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.
Severity breakdown
Low · 3.7
An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Login needed
- no
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- low on confidentiality, none on integrity and availability
Weakness
- CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| pydantic httpx2 | < 2.18.0 | 2.18.0 |
References by type
Vendor advisories
Affected
- pydantic httpx2
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-140868?
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. Weakness type: Exposure of Sensitive Information to an Unauthorized Actor (CWE-200).
How severe is CVE-2026-140868?
CVE-2026-140868 has a CVSS 3.1 base score of 3.7 (low), from the CNA. An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
Is CVE-2026-140868 being exploited?
Not as far as is known: CVE-2026-140868 is not in CISA's Known Exploited Vulnerabilities catalog as of December 5, 2026.
Which versions are affected by CVE-2026-140868?
pydantic httpx2 < 2.18.0 (fixed in 2.18.0).
How do I fix CVE-2026-140868?
Update to a fixed release: pydantic httpx2 2.18.0.