CVE-2026-44431·Python vulnerability
urllib3 is an HTTP client library for Python. From 1.23 to before 2.7.0, cross-origin redirects followed from the low-level API via ProxyManager.connection_from_url().urlopen(..., assert_same_host=False) still forward these sensitive headers. This vulnerability is fixed in 2.7.0.
- Severity
- medium
- Software
- Python
- Fixed in
- 2.7.0
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 2% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 1.23
Until: 2.7.0
Fixed in: 2.7.0
How to fix this CVE
Upgrade urllib3 to version 2.7.0 or later to prevent sensitive HTTP headers from being forwarded during cross-origin redirects when using ProxyManager with assert_same_host=False. This patch eliminates the risk of credential leakage across domain boundaries in redirect chains. Review your Python dependencies and ensure all urllib3 installations in your environment meet the minimum patched version.
sudo dnf update python3-urllib3Defensia detects this vulnerability
How to check if you are affected
- Step 1: Check installed urllib3 version with: python3 -c "import urllib3; print(urllib3.__version__)"
- Step 2: List all Python packages and grep for urllib3: pip3 list | grep urllib3 or python3 -m pip list | grep urllib3
- Step 3: Search application logs for ProxyManager instantiation and urlopen calls with assert_same_host=False parameter in source code: grep -r "assert_same_host=False" /path/to/application
- Step 4: After patching, re-run python3 -c "import urllib3; print(urllib3.__version__)" and verify version is 2.7.0 or higher
FAQ
What is CVE-2026-44431?
CVE-2026-44431 is a header leakage vulnerability in urllib3 where sensitive HTTP authentication headers are inadvertently forwarded to different origins when following redirect chains, but only when explicitly disabling the same-host check via assert_same_host=False in ProxyManager operations.
Is CVE-2026-44431 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog and no public exploit code is currently available.
What versions of Python are affected by CVE-2026-44431?
urllib3 versions 1.23 through 2.6.x are vulnerable. The vulnerability is patched in urllib3 2.7.0 and later.
How do I check if my server is vulnerable to CVE-2026-44431?
Run: python3 -c "import urllib3; v = tuple(map(int, urllib3.__version__.split('.')[:2])); print('VULNERABLE' if (1, 23) <= v < (2, 7) else 'PATCHED')" to determine if your installed version falls within the affected range.
Does Defensia detect CVE-2026-44431?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If urllib3 or Python is installed on a monitored server, CVE-2026-44431 will appear in your dashboard with remediation steps.
Related Python CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-44431. Free for 1 server.
Get started free