{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-15806","id":"CVE-2026-15806","title":"`HTTPPasswordMgr` can send saved HTTPS credentials via HTTP because of incorrect scheme matching","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","descriptionLong":"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://.\n\nCredential 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.\n\nUsers 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.","published":"2026-08-18T15:50:57.983Z","updated":"2026-11-12T02:31:11.266477542Z","reserved":"2026-07-15T08:49:13.390Z","status":"Awaiting Analysis","rejected":false,"assigner":"PSF","metric":{"version":"4.0","score":6,"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","rating":"medium","source":"PSF"},"metrics":[{"version":"4.0","score":6,"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","rating":"medium","source":"PSF"},{"version":"4.0","score":6,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"python.org"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"}],"rating":"medium","products":["Python Software Foundation CPython"],"affectedProducts":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"3.10.22","status":"affected","versionType":"python"},{"version":"3.11.0","lessThan":"3.11.17","status":"affected","versionType":"python"},{"version":"3.12.0","lessThan":"3.12.15","status":"affected","versionType":"python"},{"version":"3.13.0","lessThan":"3.13.16","status":"affected","versionType":"python"},{"version":"3.14.0","lessThan":"3.14.8","status":"affected","versionType":"python"},{"version":"3.15.0a1","lessThan":"3.15.0rc2","status":"affected","versionType":"python"}],"platforms":[]}],"packages":[],"cwes":["CWE-319","CWE-522"],"aliases":["BIT-libpython-2026-15806","BIT-python-2026-15806","BIT-python-min-2026-15806","PSF-2026-36"],"references":[{"url":"https://github.com/python/cpython/issues/155694","tags":["issue-tracking","exploit","report"]},{"url":"https://github.com/python/cpython/pull/155696","tags":["patch","fix","web"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/3OKPE5S75KDNA7FY7AI3PL2MXM2X5RB3/","tags":["vendor-advisory","advisory"]},{"url":"https://github.com/python/cpython/commit/a0d023fbd23773e24b35d8368789470e22cda5d8","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/a2773a34183b7d94a243bb98fd658926cc5348ce","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/a7bb524fef61f77ede01f660ffbd591e1d5837ce","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/641be42bb07921ba0f8bffe228b1dc706b092ef6","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/851cf9a7142ecbdd39f831055533f58284ad2bcc","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/95355ee3a8e1d3c3d4858d1973aa42a9b91a2801","tags":["patch","fix"]},{"url":"https://github.com/python/cpython/commit/dac88d8615078c55f1304ea4c7a2d822700d4e5a","tags":["patch","fix"]},{"url":"http://www.openwall.com/lists/oss-security/2026/08/18/3","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/15xxx/CVE-2026-15806.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-15806","tags":["advisory"]},{"url":"https://github.com/python/cpython","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00528,"epssPercentile":0.45642,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-15806","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-15806","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-15806","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-15806","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":["python"],"critical":[],"attention":null}