CVE-2026-15806

Public on 2026-08-18
Modified on 2026-08-22
Description
The HTTPPasswordMgr class in the urllib.request module, along with its subclasses HTTPPasswordMgrWithDefaultRealm and HTTPPasswordMgrWithPriorAuth, did not take the URL scheme into account when matching stored credentials against a requested URL. Credentials added for an https:// URL were also used for requests to the same host over http://, so an attacker able to redirect or downgrade a client to plain HTTP (for example, via an HTTPS-to-HTTP redirect or an on-path position) could capture credentials in cleartext. Credentials added for http:// URLs could likewise be sent over https://.

Credential matching is now scoped by URL scheme. Credentials registered with a URL that includes a scheme are only used for requests with the same scheme. Credentials registered with a bare authority (such as example.com or example.com:8080) continue to match any scheme, preserving compatibility with existing code, including proxy authentication.

Users who cannot upgrade immediately can mitigate by ensuring that applications never make plain http:// requests to hosts for which credentials are registered, for example by not following redirects to http:// URLs.
Severity
Medium severity
Medium
See what this means
CVSS v3 Base Score
5.9
See breakdown

Affected Packages

Platform Package Release Date Advisory Status
Amazon Linux 2 - Core python Pending Fix
Amazon Linux 2 - Core python3 Pending Fix
Amazon Linux 2023 python3.11 2026-10-24 ALAS2023-2026-3231 Fixed
Amazon Linux 2023 python3.12 2026-10-24 ALAS2023-2026-3230 Fixed
Amazon Linux 2023 python3.13 2026-10-24 ALAS2023-2026-3229 Fixed
Amazon Linux 2023 python3.14 2026-10-24 ALAS2023-2026-3232 Fixed
Amazon Linux 2027 Preview python3.14 Pending Fix
Amazon Linux 2023 python3.9 Pending Fix

CVSS Scores

Score Type Score Vector
Amazon Linux CVSSv3 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N