CVE-2026-15806`HTTPPasswordMgr` can send saved HTTPS credentials via HTTP because of incorrect scheme…
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.
What to do
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | python3.14 | Fix pending | UBUNTU-CVE-2026-15806 | |
| Ubuntu 26.04 | python3.14 | Under investigation | UBUNTU-CVE-2026-15806 | |
| Ubuntu 24.04 | python3.12 | Under investigation | UBUNTU-CVE-2026-15806 | |
| Ubuntu 22.04 | python2.7 | Fix pending | UBUNTU-CVE-2026-15806 | |
| Ubuntu 22.04 | python3.10 | Under investigation | UBUNTU-CVE-2026-15806 | |
| Ubuntu 22.04 | python3.11 | Fix pending | UBUNTU-CVE-2026-15806 | |
| Ubuntu 20.04 | python2.7 | Fix pending | UBUNTU-CVE-2026-15806 | |
| Ubuntu 20.04 | python3.8 | Fix pending | UBUNTU-CVE-2026-15806 | |
| Ubuntu 20.04 | python3.9 | Fix pending | UBUNTU-CVE-2026-15806 | |
| Ubuntu 18.04 | python2.7 | Fix pending | UBUNTU-CVE-2026-15806 | |
| Ubuntu 18.04 | python3.6 | Fix pending | UBUNTU-CVE-2026-15806 | |
| Ubuntu 18.04 | python3.7 | Fix pending | UBUNTU-CVE-2026-15806 | |
| Ubuntu 18.04 | python3.8 | Fix pending | UBUNTU-CVE-2026-15806 | |
| Ubuntu 16.04 | python2.7 | Fix pending | UBUNTU-CVE-2026-15806 | |
| Ubuntu 16.04 | python3.5 | Fix pending | UBUNTU-CVE-2026-15806 | |
| Ubuntu 14.04 | python2.7 | Fix pending | UBUNTU-CVE-2026-15806 | |
| Ubuntu 14.04 | python3.4 | Fix pending | UBUNTU-CVE-2026-15806 | |
| Ubuntu 14.04 | python3.5 | Fix pending | UBUNTU-CVE-2026-15806 | |
| Debian 14 | pypy3 | Fixed | 8.0.1+dfsg-1 | DEBIAN-CVE-2026-15806 |
| Debian 14 | python3.14 | Fixed | 3.14.7-3 | DEBIAN-CVE-2026-15806 |
| Debian 14 | python3.15 | Fixed | 3.15.0~rc2-1 | DEBIAN-CVE-2026-15806 |
| Debian 13 | pypy3 | Fix pending | DEBIAN-CVE-2026-15806 | |
| Debian 13 | python3.13 | Fix pending | DEBIAN-CVE-2026-15806 | |
| Debian 12 | pypy3 | Fix pending | DEBIAN-CVE-2026-15806 | |
| Debian 12 | python3.11 | Fixed | 3.11.2-6+deb12u9 | DEBIAN-CVE-2026-15806 |
| Alpine Linux 3.24 | python3 | Fixed | 3.14.8-r0 | ALPINE-CVE-2026-15806 |
| Alpine Linux 3.23 | python3 | Fixed | 3.12.15-r0 | ALPINE-CVE-2026-15806 |
| Alpine Linux 3.22 | python3 | Fixed | 3.12.15-r0 | ALPINE-CVE-2026-15806 |
| Alpine Linux 3.21 | python3 | Fixed | 3.12.15-r0 | ALPINE-CVE-2026-15806 |
What the vendor says
As published in the CVE record by PSF, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Python Software Foundation CPython: affected: before 3.10.22, 3.11.0 to before 3.11.17, 3.12.0 to before 3.12.15, 3.13.0 to before 3.13.16, 3.14.0 to before 3.14.8, 3.15.0a1 to before 3.15.0rc2; fixed in
3.10.22,3.11.17,3.12.15,3.13.16,3.14.8,3.15.0rc2
Vendor advisories:
- https://github.com/python/cpython/pull/155696 (patch)
- https://mail.python.org/archives/list/security-announce@python.org/thread/3OKPE5S75KDNA7F… (vendor-advisory)
- https://github.com/python/cpython/commit/a0d023fbd23773e24b35d8368789470e22cda5d8 (patch)
- https://github.com/python/cpython/commit/a2773a34183b7d94a243bb98fd658926cc5348ce (patch)
- https://github.com/python/cpython/commit/a7bb524fef61f77ede01f660ffbd591e1d5837ce (patch)
- https://github.com/python/cpython/commit/641be42bb07921ba0f8bffe228b1dc706b092ef6 (patch)
References
- https://github.com/python/cpython/issues/155694
- https://github.com/python/cpython/pull/155696
- https://mail.python.org/archives/list/security-announce@python.org/thread/3OKPE5S75KDNA7FY7AI3PL2MXM2X5RB3/
- https://github.com/python/cpython/commit/a0d023fbd23773e24b35d8368789470e22cda5d8
- https://github.com/python/cpython/commit/a2773a34183b7d94a243bb98fd658926cc5348ce
- https://github.com/python/cpython/commit/a7bb524fef61f77ede01f660ffbd591e1d5837ce
- https://github.com/python/cpython/commit/641be42bb07921ba0f8bffe228b1dc706b092ef6
- https://github.com/python/cpython/commit/851cf9a7142ecbdd39f831055533f58284ad2bcc
- https://github.com/python/cpython/commit/95355ee3a8e1d3c3d4858d1973aa42a9b91a2801
- https://github.com/python/cpython/commit/dac88d8615078c55f1304ea4c7a2d822700d4e5a
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.