CVE-2026-140868
Description
A flaw was found in httpx2. A remote or on-path attacker can capture sensitive proxy credentials when an application follows an HTTP redirect to an untrusted domain. This issue occurs because the client fails to remove proxy authentication headers during cross-origin redirects, resulting in information disclosure.
Statement
Red Hat has evaluated this vulnerability as having Low impact because exploitation requires a combination of non-default application configurations, specifically enabling automatic redirect handling and manually inserting proxy credentials into HTTP headers rather than using standard proxy parameters. In standard Red Hat environments, HTTP client implementations do not automatically follow cross-site redirects with custom authentication headers. Additionally, the risk is strictly limited to credential exposure of the proxy header without enabling remote code execution or broader system compromise.
Mitigation
To mitigate this issue without modifying software packages, configure applications using the httpx2 library to supply proxy credentials through the designated proxy parameter or proxy URL rather than setting explicit Proxy-Authorization headers. Alternatively, ensure automatic redirect handling remains disabled (set follow_redirects=False) when issuing requests to external or untrusted endpoints.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 3.7 | N/A | 3.7 |
| Attack Vector | Network | N/A | Network |
| Attack Complexity | High | N/A | High |
| Privileges Required | None | N/A | None |
| User Interaction | None | N/A | None |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality | Low | N/A | Low |
| Integrity Impact | None | N/A | None |
| Availability Impact | None | N/A | None |
Vector
Red Hat: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
cve.org: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Understanding the Weakness (CWE)
Confidentiality
Technical Impact: Read Files or Directories; Read Memory; Read Application Data
Sensitive data may be exposed to attackers.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.