CVE-2021-21240
HIGH 7.5CVSS 3.1Regular Expression Denial of Service (REDoS) in httplib2
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.
- Published
- 8 Feb 2021
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-400
- Also known as
- GHSA-93xj-8mrv-444mPYSEC-2021-16
- Sources
- NVDJSONOSV GHSA-93xj-8mrv-444mJSONOSV PYSEC-2021-16JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | httplib2_project | httplib2cpe:2.3:a:httplib2_project:httplib2:*:*:*:*:*:python:*:* |
< 0.19.0 | 0.19.0 |
| OSV | PyPI | httplib2 | < 0.19.0 | 0.19.0 |
References
- https://github.com/httplib2/httplib2/commit/bd9ee252c8f099608019709e22c0d705e98d26bc · Patch, Third Party Advisory, WEB, FIX
- https://github.com/httplib2/httplib2/pull/182 · Patch, Third Party Advisory, WEB
- https://github.com/httplib2/httplib2/security/advisories/GHSA-93xj-8mrv-444m · Exploit, Mitigation, Third Party Advisory, WEB, ADVISORY
- https://pypi.org/project/httplib2 · Product, Third Party Advisory, WEB, PACKAGE
- https://nvd.nist.gov/vuln/detail/CVE-2021-21240 · ADVISORY
- https://github.com/httplib2/httplib2 · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/httplib2/PYSEC-2021-16.yaml · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 8 Feb 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 8 Feb 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 Feb 2021)