Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. httplib2
  4. ›
  5. CVE-2021-21240

CVE-2021-21240: Regular Expression Denial of Service (REDoS) in httplib2

February 8, 2021 (updated September 23, 2024)

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.

References

  • github.com/advisories/GHSA-93xj-8mrv-444m
  • github.com/httplib2/httplib2
  • github.com/httplib2/httplib2/commit/bd9ee252c8f099608019709e22c0d705e98d26bc
  • github.com/httplib2/httplib2/pull/182
  • github.com/httplib2/httplib2/security/advisories/GHSA-93xj-8mrv-444m
  • github.com/pypa/advisory-database/tree/main/vulns/httplib2/PYSEC-2021-16.yaml
  • nvd.nist.gov/vuln/detail/CVE-2021-21240
  • pypi.org/project/httplib2

Code Behaviors & Features

Detect and mitigate CVE-2021-21240 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.19.0

Fixed versions

  • 0.19.0

Solution

Upgrade to version 0.19.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

pypi/httplib2/CVE-2021-21240.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:09 +0000.