PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-15806 Python Software Foundation CVE debrief

The HTTPPasswordMgr class in Python's urllib.request module had a vulnerability where it did not properly account for the URL scheme when matching stored credentials against a requested URL. This could allow an attacker to capture credentials in cleartext by redirecting or downgrading a client to plain HTTP. The issue has been resolved by scoping credential matching by URL scheme. Organizations and developers using Python's urllib.request module, especially those handling sensitive credentials or authentication, should be aware of this vulnerability. The CVE record was published on 2026-08-18T16:17:02.220Z and has not been modified since then.

Vendor
Python Software Foundation
Product
CPython
CVSS
MEDIUM 6
CISA KEV
Not listed in stored evidence
Original CVE published
2026-08-18
Original CVE updated
2026-09-02
Advisory published
2026-08-18
Advisory updated
2026-09-02

Who should care

Organizations and developers using Python's urllib.request module, especially those handling sensitive credentials or authentication, should prioritize upgrading to a version with the credential matching fix to prevent potential credential exposure. This includes ensuring applications do not make plain HTTP requests to hosts with registered credentials and monitoring for suspicious HTTP traffic. The vulnerability affects users who cannot upgrade immediately and need to mitigate the issue through other means. Users should review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance. Users should also plan vendor-supported updates or mitigations through normal change control where exposure is confirmed. Compensating controls for exposed systems should be reviewed while remediation is scheduled and verified. Relevant monitoring, detection, and logs for exposed assets should be checked for extra review. Exceptions, retested remediated assets, and closed items should be tracked only after evidence is documented. This may involve confirming whether affected product deployments exist in managed environments and assigning an owner for follow-up. Affected operator, platform, vulnerability-management, and security-team impact should be considered when determining who should care about this vulnerability. The issue requires immediate attention from organizations that rely on Python's urllib.request module for handling credentials and authentication. Security teams should assess the vulnerability's impact on their organization's assets and prioritize mitigation efforts accordingly. The vulnerability's severity and potential operational impact should be carefully evaluated to ensure effective mitigation and remediation. The issue highlights the importance of proper credential management and secure communication protocols in preventing potential credential exposure. Therefore, it is crucial for organizations to take proactive measures to address this vulnerability and prevent potential security breaches. To effectively address this vulnerability, organizations should consider implementing additional security controls, such as 2

Technical summary

The HTTPPasswordMgr class in Python's urllib.request module did not properly account for the URL scheme when matching stored credentials against a requested URL. This could allow an attacker to capture credentials in cleartext by redirecting or downgrading a client to plain HTTP. The issue has been resolved by scoping credential matching 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 continue to match any scheme, preserving compatibility with existing code.

Defensive priority

Organizations using Python's urllib.request module should prioritize upgrading to a version with the credential matching fix to prevent potential credential exposure.

Recommended defensive actions

  • Upgrade to a Python version with the fixed urllib.request module
  • Ensure applications do not make plain HTTP requests to hosts with registered credentials
  • Monitor for and block suspicious HTTP traffic
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up

Evidence notes

The HTTPPasswordMgr class in the urllib.request module did not account for URL scheme when matching stored credentials, potentially allowing attackers to capture credentials in cleartext via redirects or downgrades to plain HTTP. The issue is resolved by scoping credential matching by URL scheme.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-15806 CVE Program record

    Publisher, destination, and source semantics verified

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

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-15806 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-15806

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.