Skip to content

[3.15] gh-158907: Do not send proxy credentials to a direct origin on 407 (GH-158956) - #161919

Merged
orsenthil merged 1 commit into
python:3.15from
miss-islington:backport-ab48ba8-3.15
Nov 16, 2026
Merged

orsenthil merged 1 commit into
python:3.15from
miss-islington:backport-ab48ba8-3.15

Conversation

@miss-islington

Copy link
Copy Markdown
Contributor

ProxyBasicAuthHandler and ProxyDigestAuthHandler looked up passwords with the scheme-less origin host, so an HTTP 407 could match credentials stored for HTTPS and retry in cleartext.


(cherry picked from commit ab48ba8)

Co-authored-by: rajorin 167426833+rajorin@users.noreply.github.com
Co-authored-by: Senthil Kumaran senthil@python.org

…407 (pythonGH-158956)

* pythongh-158907: Do not send proxy credentials to a direct origin on 407

ProxyBasicAuthHandler and ProxyDigestAuthHandler looked up passwords with the scheme-less origin host, so an HTTP 407 could match credentials stored for HTTPS and retry in cleartext.

---------
(cherry picked from commit ab48ba8)

Co-authored-by: rajorin <167426833+rajorin@users.noreply.github.com>
Co-authored-by: Senthil Kumaran <senthil@python.org>
@python-cla-bot

python-cla-bot Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@orsenthil
orsenthil enabled auto-merge (squash) November 13, 2026 01:45
@orsenthil
orsenthil merged commit 849d0ce into python:3.15 Nov 16, 2026
60 checks passed
@miss-islington
miss-islington deleted the backport-ab48ba8-3.15 branch November 16, 2026 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants