All vulnerabilities

Servers and applications

CVE-2026-15806

`HTTPPasswordMgr` can send saved HTTPS credentials via HTTP because of incorrect scheme matching

Severity
Medium 6.0
Published
18 Aug 2026
Last changed
10 Nov 2026
Added to UpHeron
10 Nov 2026
Fixed in
3.10.22, 3.11.17, 3.12.15, 3.13.16, 3.14.8, 3.15.0rc2
Exploit chance
0.5% in the next 30 daysHigher than 45% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Cleartext transmission (CWE-319)Insufficiently protected credentials (CWE-522)
Attack
Over the network · Only under certain conditions · No login needed · Needs someone to view a page or file
Attacker can
Read data
CVSS vector
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
Sources
CVE Program

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.

From the CVE Program. Shortened; the full text is there.

Affected software

SoftwareAffected versions
PythonServers and applications · cna:python software foundation|cpython
  • Every version before 3.10.22
  • From 3.11.0 before 3.11.17
  • From 3.12.0 before 3.12.15
  • From 3.13.0 before 3.13.16
  • From 3.14.0 before 3.14.8
  • From 3.15.0a1 before 3.15.0rc2

About Python

general-purpose programming language

From Wikidata, CC0 1.0.
Share of websites with a known server-side language
1.2%W3Techs, Nov 2026
Developers who used it in the past year
57.9%Stack Overflow Developer Survey 2025, 2025
Docker Hub pulls
9,640,071,763Docker Hub, 15 Nov 2026
GitHub stars
78,222GitHub, 15 Nov 2026
Forks
36,604GitHub, 15 Nov 2026
Developer
Python Software FoundationWikidata
License
Python Software Foundation LicenseWikidata
Written in
Python, CWikidata
First released
20 Feb 1991Wikidata
First published on GitHub
10 Feb 2017GitHub

Release lines

ReleaseLatestSecurity fixes
3.153.15.2Until 31 Oct 2031
3.143.14.10Until 31 Oct 2030
3.133.13.18Until 31 Oct 2029
3.123.12.16Until 31 Oct 2028
3.113.11.18Until 31 Oct 2027
3.103.10.22Ended 1 Oct 2026

From endoflife.date.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-15806