`HTTPPasswordMgr` can send saved HTTPS credentials via HTTP because of incorrect scheme matching
CVE-2026-15806Published 18 Aug 2026, 15:50 UTC
Real-world risk
1.1/ 10Low
Routine
If the vulnerable configuration applies to you: 2.4
PreliminaryFrom the CVSS vector only · confidence low
CVSS
6.0
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from PSF)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| CPythonUbiquitous | < 3.10.22; >= 3.11.0, < 3.11.17; >= 3.12.0, < 3.12.15; >= 3.13.0, < 3.13.16; >= 3.14.0, < 3.14.8; >= 3.15.0a1, < 3.15.0rc2 | 3.10.22, 3.11.17, 3.12.15, 3.13.16, 3.14.8, 3.15.0rc2 |
What to do
Update to a fixed version: 3.10.22, 3.11.17, 3.12.15, 3.13.16, 3.14.8, 3.15.0rc2.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- Reference tagged as exploit (link)
- CISA SSVC: proof of concept
EPSS 0.5% chance of exploitation in 30 days (percentile 43), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.142
- Threat T3: Public proof of concept0.950
- 10 × impact 0.8 × prerequisites 0.1418 × threat 0.951.077
- Rounded to one decimal between 0.1 and 101.1
Exploitation and evidence timeline
- 18 Aug 2026 Published
- 3 Dec 2026 Reference tagged as exploit first seen
- 3 Dec 2026 CISA SSVC: proof of concept first seen
- 3 Dec 2026 Risk 1.1 (cvss fallback)
Weakness
CWE-319, CWE-522
References
- https://github.com/python/cpython/issues/155694exploit, issue-tracking
- https://github.com/python/cpython/pull/155696patch
- https://mail.python.org/archives/list/[email protected]/thread/3OKPE5S75KDNA7FY7AI3PL2MXM2X5RB3/vendor-advisory
- https://github.com/python/cpython/commit/a0d023fbd23773e24b35d8368789470e22cda5d8patch
- https://github.com/python/cpython/commit/a2773a34183b7d94a243bb98fd658926cc5348cepatch
- https://github.com/python/cpython/commit/a7bb524fef61f77ede01f660ffbd591e1d5837cepatch
- https://github.com/python/cpython/commit/641be42bb07921ba0f8bffe228b1dc706b092ef6patch
- https://github.com/python/cpython/commit/851cf9a7142ecbdd39f831055533f58284ad2bccpatch
- https://github.com/python/cpython/commit/95355ee3a8e1d3c3d4858d1973aa42a9b91a2801patch
- https://github.com/python/cpython/commit/dac88d8615078c55f1304ea4c7a2d822700d4e5apatch
- http://www.openwall.com/lists/oss-security/2026/08/18/3
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html
- CVE-2026-15806 on CVE.org