CRLF injection in urllib3
urllib3 before 1.25.9 allows CRLF injection if the attacker controls the HTTP request method, as demonstrated by inserting CR and LF control characters in the first argument of putrequest(). NOTE: this is similar to CVE-2020-26116.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | urllib3 | < 1.25.9 | 1.25.9 |
References
- https://bugs.python.org/issue39603
- https://github.com/urllib3/urllib3/commit/1dd69c5c5982fae7c87a620d487c2ebf7a6b436b
- https://github.com/urllib3/urllib3/pull/1800
- https://usn.ubuntu.com/4570-1/
- https://github.com/advisories/GHSA-wqvq-5m8c-6g24
- https://nvd.nist.gov/vuln/detail/CVE-2020-26137
- https://github.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2020-148.yaml
- https://github.com/urllib3/urllib3
- https://lists.debian.org/debian-lts-announce/2021/06/msg00015.html
- https://lists.debian.org/debian-lts-announce/2023/10/msg00012.html
- https://usn.ubuntu.com/4570-1
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://www.oracle.com/security-alerts/cpuoct2021.html
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N- Weakness (CWE)
CWE-74- Platform
- Python (PyPI)
- Package
urllib3- Disclosed
- 30.09.2020
- Updated
- 11.10.2026 11:20
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2020-148 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-wqvq-5m8c-6g24 - CC BY 4.0
Vulnerability history: urllib3
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 22
- First → latest
- 01.2017 09.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- High 11
- Medium 10
Disclosures per year
- 2017: 1
- 2018: 1
- 2019: 2
- 2020: 2
- 2021: 2
- 2022: 0
- 2023: 3
- 2024: 1
- 2025: 4
- 2026: 6
-
CRLF injection in urllib3 this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.