Skip to content

CPython

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

CVE-2026-15806Published 18 Aug 2026, 15:50 UTC

Real-world risk

1.1/ 10Low

Routine

If the vulnerable configuration applies to you: 2.4

PreliminaryFrom the CVSS vector only · confidence low

CVSS

6.0

scored by the vendor (CNA), CVSS 4.0

In plain words

No plain-language summary yet. The original description is below.

Original description (from PSF)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
CPythonUbiquitous< 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.0rc23.10.22, 3.11.17, 3.12.15, 3.13.16, 3.14.8, 3.15.0rc2

What to do

Update to a fixed version: 3.10.22, 3.11.17, 3.12.15, 3.13.16, 3.14.8, 3.15.0rc2.

Why this score

FactorValueEvidence×
ImpactMajor data exposureReads secrets, credentials, databases, arbitrary filesFrom the CVSS vector0.80
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionRoutineA normal action: open a file, visit a page, click a linkFrom the CVSS vector0.70
ConfigurationUncommonNeeds a non-default feature that a minority enablesFrom the CVSS vector0.45
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.45

Threat level T3: Public proof of concept (× 0.95)

A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit

  • Reference tagged as exploit (link)
  • CISA SSVC: proof of concept

EPSS 0.5% chance of exploitation in 30 days (percentile 43), as of 2026-12-03.

The arithmetic
  1. Prerequisites multiplied together0.142
  2. Threat T3: Public proof of concept0.950
  3. 10 × impact 0.8 × prerequisites 0.1418 × threat 0.951.077
  4. Rounded to one decimal between 0.1 and 101.1

How the score works

Exploitation and evidence timeline

  1. 18 Aug 2026 Published
  2. 3 Dec 2026 Reference tagged as exploit first seen
  3. 3 Dec 2026 CISA SSVC: proof of concept first seen
  4. 3 Dec 2026 Risk 1.1 (cvss fallback)

Weakness

CWE-319, CWE-522

References

Get alerts for CPython

Free email or text alerts when a vulnerability in CPython reaches risk 8 or higher. Nothing else.