Vulnerability in Mechanize Project
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.
Vulnerability class: ReDoS (Regular Expression Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.287, 98.2th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Mechanize Project
- Python-Mechanize Mechanize — versions 0.4.6
Weakness classification (CWE)
References
- securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/ (Exploit, Third Party Advisory)
- github.com/python-mechanize/mechanize/blob/3acb1836f3fd8edc5a758a417dd46b53832a… (Exploit, Third Party Advisory)
- github.com/python-mechanize/mechanize/releases/tag/v0.4.6 (Third Party Advisory)
- github.com/python-mechanize/mechanize/commit/dd05334448e9f39814bab044d2eaa5ef69… (Patch, Third Party Advisory)
- [debian-lts-announce] 20230620 [SECURITY] [DLA 3460-1] python-mechanize security update (mailing-list)
- lists.debian.org/debian-lts-announce/2025/12/msg00028.html