CVE-2021-32837
CVE-2021-32837 is a high-severity vulnerability in Mechanize Project Mechanize with a CVSS 3.x base score of 7.5. Its EPSS exploit-prediction score of 29% places it in the 98th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-1333.
Key facts
- Severity: High (CVSS 3.x base score 7.5)
- EPSS exploit prediction: 29% (98th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-1333
- Affected product: Mechanize Project Mechanize
- Published:
- Last modified:
Description
mechanize, a library for automatically interacting with HTTP web servers, contains a regular expression that is vulnerable to regular expression denial of service (ReDoS) prior to version 0.4.6. If a web server responds in a malicious way, then mechanize could crash. Version 0.4.6 has a patch for the issue.
Frequently asked questions
- What is CVE-2021-32837?
- mechanize, a library for automatically interacting with HTTP web servers, contains a regular expression that is vulnerable to regular expression denial of service (ReDoS) prior to version 0.4.6. If a web server responds in a malicious way, then mechanize could crash. Version 0.4.6 has a patch for the issue.
- How severe is CVE-2021-32837?
- CVE-2021-32837 has a CVSS 3.x base score of 7.5, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is none, integrity none, and availability high.
- Is CVE-2021-32837 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 29% (98th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-32837?
- CVE-2021-32837 affects Mechanize Project Mechanize. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2021-32837?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2021-32837 published?
- CVE-2021-32837 was published on 2023-01-17 and last updated on 2026-06-17.
References
- https://github.com/python-mechanize/mechanize/blob/3acb1836f3fd8edc5a758a417dd46b53832ae3b5/mechanize/_urllib2_fork.py#L878-L879
- https://github.com/python-mechanize/mechanize/commit/dd05334448e9f39814bab044d2eaa5ef69b410d6
- https://github.com/python-mechanize/mechanize/releases/tag/v0.4.6
- https://lists.debian.org/debian-lts-announce/2023/06/msg00022.html
- https://securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/
- https://lists.debian.org/debian-lts-announce/2025/12/msg00028.html
Affected products (1)
- cpe:2.3:a:mechanize_project:mechanize:*:*:*:*:*:python:*:*
More vulnerabilities in Mechanize Project Mechanize
- CVE-2021-21289 — High (CVSS 7.4): Mechanize is an open-source ruby library that makes automated web interaction easy. In Mechanize from version 2.0.0 and…
- CVE-2022-31033 — Medium (CVSS 5.9): The Mechanize library is used for automating interaction with websites. Mechanize automatically stores and sends…
All CVEs affecting Mechanize Project Mechanize →
Other CWE-1333 vulnerabilities
- CVE-2026-35458 — Critical (CVSS 9.8): Gotenberg is an API for converting document formats. In 8.29.1 and earlier, Gotenberg uses dlclark/regexp2 to compile…
- CVE-2023-29486 — Critical (CVSS 9.8): An issue was discovered in Heimdal Thor agent versions 3.4.2 and before 3.7.0 on Windows, allows attackers to bypass…
- CVE-2026-25547 — Critical (CVSS 9.2): @isaacs/brace-expansion is a hybrid CJS/ESM TypeScript fork of brace-expansion. Prior to version 5.0.1,…
- CVE-2023-29487 — Critical (CVSS 9.1): An issue was discovered in Heimdal Thor agent versions 3.4.2 and before on Windows and 2.6.9 and before on macOS,…
- CVE-2026-47138 — High (CVSS 8.7): Parse Server is an open source backend that can be deployed to any infrastructure that can run Node.js. Prior to…
- CVE-2025-6998 — High (CVSS 8.7): ReDoS in strip_whitespaces() function in cps/string_helper.py in Calibre Web and Autocaliweb allows unauthenticated…