Proxy-Authorization header leaks proxy credentials on cross-origin redirects
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-200.
Summary
httpx2 before 2.18.0 keeps the Proxy-Authorization header when a redirect goes to a different origin, so a client that sets this header in its headers sends the proxy credential to the redirect target. An attacker who controls the redirecting response, or an on-path attacker on plain HTTP, can capture the credential when follow_redirects is enabled and the header is passed in headers rather than in the proxy URL. This exposes sensitive information (CWE-200).
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Upgrade httpx2 to 2.18.0, which removes Proxy-Authorization whenever a redirect changes origin. Until then, put proxy credentials in the proxy URL instead of a header, or leave follow_redirects off.
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
- Fix · CNA httpx2 (pydantic) Fixed in 2.18.0
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
pydantic httpx2 2.18.0
3 records Highest priority Priority MEDIUM 1 MEDIUM, 2 LOW
Other records, highest priority first
- TI-2026-104104 Unbounded line buffering in httpx2 iter_lines() exhausts memoryPriority MEDIUM 42
- TI-2026-104102 Quadratic WebSocket reassembly in httpx2 causes CPU denial of servicePriority LOW 39
Timeline
- 2026-12-04 Threatist record created from CVE-2026-140868
- 2026-12-04 Alias added: GHSA-7qrj-x3rv-5765
References
More pydantic vulnerabilities
- TI-2024-03518 Regular expression denial of service in Pydantic < 2.4.0 CVSS 3.1HIGH 7.5
- TI-2026-57990 HTTPX2: Multipart part header injection via unvalidated file Content-Type and custom headers CVSS 3.1MEDIUM 5.3
- TI-2026-41916 Path traversal in pydantic-settings CVSS 3.1MEDIUM 5.3
- TI-2026-20687 Pydantic AI Affected by Server-Side Request Forgery (SSRF) in URL Download Handling CVSS 3.1HIGH 8.6
- TI-2026-104104 Unbounded line buffering in httpx2 iter_lines() exhausts memory CVSS 3.1MEDIUM 5.9
- TI-2026-94639 Harness `ToolOutputLimits` ANSI stripping can take quadratic time, blocking the event loop CVSS 3.1HIGH 7.5
Sources
- CVE-2026-140868 · CVE Program
- CVE-2026-140868 · NVD
- GHSA-7qrj-x3rv-5765 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences