High severityNVD Advisory· Published Jan 17, 2023· Updated Dec 22, 2025
mechanize vulnerable to ReDoS
CVE-2021-32837
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
mechanizePyPI | < 0.4.6 | 0.4.6 |
Affected products
5- ghsa-coords4 versionspkg:pypi/mechanizepkg:rpm/opensuse/python-mechanize&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/python-mechanize&distro=openSUSE%20Tumbleweedpkg:rpm/suse/python-mechanize&distro=SUSE%20Package%20Hub%2015%20SP4
< 0.4.6+ 3 more
- (no CPE)range: < 0.4.6
- (no CPE)range: < 0.4.8-bp154.2.3.1
- (no CPE)range: < 0.4.10-1.4
- (no CPE)range: < 0.4.8-bp154.2.3.1
- Range: 0.4.6
Patches
Vulnerability mechanics
References
10- github.com/advisories/GHSA-g3pv-pj5f-3hfqghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-32837ghsaADVISORY
- securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanizeghsaADVISORY
- github.com/pypa/advisory-database/tree/main/vulns/mechanize/PYSEC-2023-25.yamlghsaWEB
- github.com/python-mechanize/mechanize/blob/3acb1836f3fd8edc5a758a417dd46b53832ae3b5/mechanize/_urllib2_fork.pyghsaWEB
- github.com/python-mechanize/mechanize/commit/dd05334448e9f39814bab044d2eaa5ef69b410d6ghsaWEB
- github.com/python-mechanize/mechanize/releases/tag/v0.4.6ghsaWEB
- lists.debian.org/debian-lts-announce/2023/06/msg00022.htmlghsamailing-listWEB
- lists.debian.org/debian-lts-announce/2025/12/msg00028.htmlghsaWEB
- securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/mitre
News mentions
0No linked articles in our index yet.