Urllib3 Incorrect Certificate Validation
Published 17 May 2022 · Updated 18 Nov 2024
Is your project on an affected urllib3?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- >=1.17 <1.18.1
- Fixed in
- 1.18.1
pip install 'urllib3>=1.18.1'Details
Versions 1.17 and 1.18 of the Python urllib3 library suffer from a vulnerability that can cause them, in certain configurations, to not correctly validate TLS certificates. This places users of the library with those configurations at risk of man-in-the-middle and information leakage attacks. This vulnerability affects users using versions 1.17 and 1.18 of the urllib3 library, who are using the optional PyOpenSSL support for TLS instead of the regular standard library TLS backend, and who are using OpenSSL 1.1.0 via PyOpenSSL. This is an extremely uncommon configuration, so the security impact of this vulnerability is low.
Is GHSA-v4w5-p2hg-8fh6 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected urllib3, and gives you the command that fixes it.
More advisories for urllib3
- MediumCVE-2026-97688urllib3: Chunked Deflate streaming can enter an infinite loop · 30 Sept 2026
- HighCVE-2026-97689urllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into memory · 30 Sept 2026
- HighCVE-2026-97687urllib3: HTTPS proxy TLS configuration may be ignored or overridden · 30 Sept 2026
- HighCVE-2026-44432urllib3: Decompression-bomb safeguards bypassed in parts of the streaming API · 11 May 2026
- HighCVE-2026-44431urllib3: Sensitive headers forwarded across origins in proxied low-level redirects · 11 May 2026
- HighCVE-2026-21441Decompression-bomb safeguards bypassed when following HTTP redirects (streaming API) · 7 Jan 2026
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2016-9015
- Linkgithub.com/urllib3/urllib3/commit/c32cdbc16a9634fa0f8c829d1270301570158715
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2017-98.yaml
- Packagegithub.com/urllib3/urllib3
- Linkweb.archive.org/web/20210123184150/http://www.securityfocus.com/bid/93941
- Linkwww.openwall.com/lists/oss-security/2016/10/27/6
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.