`HTTPPasswordMgr` can send saved HTTPS credentials via HTTP because of incorrect scheme matching
Summary
| CVE | CVE-2026-15806 |
|---|---|
| State | PUBLISHED |
| Assigner | PSF |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-08-18 16:17:02 UTC |
| Updated | 2026-09-02 01:17:23 UTC |
| 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. |
Risk And Classification
Primary CVSS: v4.0 6 MEDIUM from [email protected]
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS: 0.004070000 probability, percentile 0.337920000 (date 2026-08-31)
Problem Types: CWE-319 | CWE-522 | CWE-319 CWE-319 | CWE-522 CWE-522
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 4.0 | [email protected] | Secondary | 6 | MEDIUM | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/C... |
| 4.0 | CNA | CVSS | 6 | MEDIUM | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
CVSS v4.0 Breakdown
Attack Vector
NetworkAttack Complexity
HighAttack Requirements
PresentPrivileges Required
NoneUser Interaction
PassiveConfidentiality
HighIntegrity
NoneAvailability
NoneSub Conf.
NoneSub Integrity
NoneSub Availability
NoneCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Python Software Foundation | CPython | affected 3.15.0rc2 python | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/python/cpython/issues/155694 | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | github.com | |
| github.com/python/cpython/commit/641be42bb07921ba0f8bffe228b1dc706b092ef6 | [email protected] | github.com | |
| www.openwall.com/lists/oss-security/2026/08/18/3 | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | |
| github.com/python/cpython/pull/155696 | [email protected] | github.com | |
| github.com/python/cpython/commit/a2773a34183b7d94a243bb98fd658926cc5348ce | [email protected] | github.com | |
| github.com/python/cpython/commit/851cf9a7142ecbdd39f831055533f58284ad2bcc | [email protected] | github.com | |
| github.com/python/cpython/commit/a7bb524fef61f77ede01f660ffbd591e1d5837ce | [email protected] | github.com | |
| github.com/python/cpython/commit/a0d023fbd23773e24b35d8368789470e22cda5d8 | [email protected] | github.com | |
| mail.python.org/archives/list/[email protected]/thread/3OKPE5S75KD... | [email protected] | mail.python.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Łukasz (https://github.com/lkk7) (en)
CNA: Kirill Podoprigora (https://github.com/Eclips4) (en)
CNA: Senthil Kumaran (https://github.com/orsenthil) (en)
There are currently no legacy QID mappings associated with this CVE.