Live threats

All CVEs / Httplib2 Project

CVE-2021-21240Httplib2 Project Httplib2

High 7.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Httplib2.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
httplib2_projecthttplib2< 0.19.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.