Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-140868— Proxy-Authorization header not stripped on cross-origin redirects leaks proxy credentials

Quick assessment

Affected
pydantic httpx2
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

当跟随重定向至不同源时,httpx2 会移除 Authorization 和 Cookie 头,但保留 Proxy-Authorization。在客户端或请求头中设置了 Proxy-Authorization 的客户端会将该凭据发送到重定向目标,控制重定向响应的攻击者,或纯 HTTP 上的路径中间人攻击者,可借此截获该凭据。 应用在满足以下所有条件时受影响:设置了 follow_redirects=True(默认值为 False),Proxy-Authorization 通过 headers 传入而非通过 prox

CVSS 3.7 · Low
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-140868

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Proxy-Authorization header not stripped on cross-origin redirects leaks proxy credentials
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
信息暴露
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
pydantic httpx2 0 ~ 2.18.0 -

II. Public POCs for CVE-2026-140868

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-140868

请登录查看更多情报信息。

Other References for CVE-2026-140868 (1)

Same Patch Batch · pydantic · 2026-12-04 · 3 CVEs total

CVE-2026-142020 5.9 MEDIUM Unbounded iter_lines() and aiter_lines() buffering enables memory exhaustion via decompres
CVE-2026-132651 5.3 MEDIUM Quadratic WebSocket fragment reassembly causes CPU denial of service

IV. Related Vulnerabilities