Skip to main content
VulnerabilityPublished

CVE-2026-140868: When following a redirect to a different origin, httpx2 removes the Authorization and Cookie headers

Source GCVE Database

0
Compare
Authoritative record:CVE-2026-140868· Low 3.7

Not known to be exploited · CVSS 3.7 Low : upgrade to 2.18.0 when convenient.

Data as of 4 Dec 2026, 14:07 UTC

CVSS 3.1 base score
3.7Low
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (Pydantic)CVSS 3.13.7
Patch
Available – fixed in 2.18.0
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 4 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Dec 2026.

What to do

Upgrade httpx2 to 2.18.0.

Affected software

ProductAffectedFixed in
pydantichttpx2Affected
  • <2.18.0
Fixed in
  • 2.18.0
PyPIhttpx2pkg:pypi/httpx2Other threatsAffected
  • <2.18.0
Fixed in
  • 2.18.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade to httpx2 version 2.18.0 or later, where the issue is fixed by removing Proxy-Authorization headers on cross-origin redirects. Until then, avoid setting Proxy-Authorization in headers; instead, provide proxy credentials via the proxy URL. Alternatively, disable automatic redirect following by setting follow_redirects to False.

Description

httpx2 before version 2.18.0 improperly retains the Proxy-Authorization header when following redirects to a different origin, potentially exposing proxy credentials to attackers controlling the redirect or on-path attackers on plain HTTP. This occurs only when follow_redirects=True, Proxy-Authorization is set in headers (not via proxy parameter), and the redirect target is accessed without the same forward proxy. The issue is fixed in version 2.18.0.

References

Community reviews

Loading reviews…