CVE-2021-21240Httplib2 Project Httplib2
High 7.5 No auth needed
Follow: this CVE · Httplib2 Project · Httplib2 Project Httplib2 We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 3.7% probability of exploitation in 30 days · percentile 90
- Auth required
- No
- Published
- Feb 8, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-400
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
httplib2 is a comprehensive HTTP client library for Python. In httplib2 before version 0.19.0, a malicious server which responds with long series of "\xa0" characters in the "www-authenticate" header may cause Denial of Service (CPU burn while parsing header) of the httplib2 client accessing said server. This is fixed in version 0.19.0 which contains a new implementation of auth headers parsing using the pyparsing library.
What to do
- Apply the vendor's security update for Httplib2.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | httplib2 |
< 0.19.0 |
0.19.0 |
pip install "httplib2>=0.19.0" |
| PyPI | httplib2 |
< 0.19.0 |
0.19.0 |
pip install "httplib2>=0.19.0" |
Per OSV / GitHub Advisories (GHSA-93xj-8mrv-444m, PYSEC-2021-16). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| httplib2_project | httplib2 | < 0.19.0 |
Official advisories
- python313-httplib2-0.32.0-1.1 on GA media · SUSE · openSUSE-SU-2026:11203-1 · Jul 7, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Exploit Mitigation Third Party Advisory
- pypi.org Product Third Party Advisory