# CVE-2026-15806: \`HTTPPasswordMgr\` can send saved HTTPS credentials via HTTP because of incorrect scheme matching

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.0
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.46% (percentile 32, 2026-11-28)
- **CWE:** CWE-319, CWE-522
- **Published:** 2026-08-18T15:50:57.983Z
- **Modified:** 2026-11-10T13:18:28.260Z

## 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

## 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

- 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)

## Mitigation

- Upgrade CPython to 3.15.0rc2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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-28).

### 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.

## References

- vendor: <https://mail.python.org/archives/list/security-announce@python.org/thread/3OKPE5S75KDNA7FY7AI3PL2MXM2X5RB3/>
- patch: <https://github.com/python/cpython/pull/155696>
- patch: <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: <https://github.com/python/cpython/commit/851cf9a7142ecbdd39f831055533f58284ad2bcc>
- patch: <https://github.com/python/cpython/commit/95355ee3a8e1d3c3d4858d1973aa42a9b91a2801>
- patch: <https://github.com/python/cpython/commit/dac88d8615078c55f1304ea4c7a2d822700d4e5a>
- exploit: <https://github.com/python/cpython/issues/155694>
- other: <http://www.openwall.com/lists/oss-security/2026/08/18/3>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-15806>

HTML: <https://flawdb.com/CVE-2026-15806> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-15806>
