CVE-2026-15806
`HTTPPasswordMgr` can send saved HTTPS credentials via HTTP because of incorrect scheme matching
Mitigation
- Upgrade CPython to 3.15.0rc2 or later.
Who should check
- Anyone running Python Software Foundation CPython < 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
Vulnerability facts
- Affected
- Python Software Foundation CPython < 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
- Fixed in
- Python Software Foundation CPython 3.10.22, Python Software Foundation CPython 3.11.17, Python Software Foundation CPython 3.12.15, Python Software Foundation CPython 3.13.16, Python Software Foundation CPython 3.14.8, Python Software Foundation CPython 3.15.0rc2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.0 (v4.0, CNA)CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Attack requirements: Present
- Privileges required: None
- User interaction: Passive
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.46% chance of exploitation in 30 days (percentile 32, 2026-11-26)
- CWE
- CWE-319, CWE-522
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Python Software Foundation CPython | < 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 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-15806. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-15806.md Affected: Python Software Foundation CPython < 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 Fixed in: Python Software Foundation CPython 3.10.22, Python Software Foundation CPython 3.11.17, Python Software Foundation CPython 3.12.15, Python Software Foundation CPython 3.13.16, Python Software Foundation CPython 3.14.8, Python Software Foundation CPython 3.15.0rc2 Steps: 1. Search this machine and project for Python Software Foundation CPython: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/python/cpython/pull/155696
- 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
Exploits and PoCs
FAQ
Is CVE-2026-15806 being exploited?
There is no confirmed exploitation: CVE-2026-15806 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.46% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-15806?
Medium: CVSS 6.0 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2026-15806?
Python Software Foundation CPython < 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.
Is there a fix for CVE-2026-15806?
Yes. Fixed in Python Software Foundation CPython 3.10.22, Python Software Foundation CPython 3.11.17, Python Software Foundation CPython 3.12.15, Python Software Foundation CPython 3.13.16, Python Software Foundation CPython 3.14.8, Python Software Foundation CPython 3.15.0rc2. Upgrade CPython to 3.15.0rc2 or later.
How do I check if I'm affected by CVE-2026-15806?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.