Security mailing lists by PureSourceCode

CVE-2026-140868

LOW 3.7CVSS 3.1

Proxy-Authorization header not stripped on cross-origin redirects leaks proxy credentials

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.

Published
4 Dec 2026
Last modified
4 Dec 2026
Assigned by
7cec5f2f-3032-4006-8740-31f605ffab5f
NVD status
Received
Weakness
CWE-200
Sources
NVDJSONCVE ListJSON

Scores

SourceScored byVersionScoreVector / decision
NVD 7cec5f2f-3032-4006-8740-31f605ffab5f (Secondary) CVSS 3.1 LOW 3.7 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
CVE List Pydantic CVSS 3.1 LOW 3.7 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List https://pypi.org httpx2 < 2.18.0 2.18.0

References

History

  • 4 Dec 2026 13:09 UTC · NVD: first stored (published 4 Dec 2026)
  • 4 Dec 2026 12:09 UTC · CVE List: first stored (published 4 Dec 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.