CVE-2021-32837Mechanize Project Mechanize
High 7.5 No auth neededHigh EPSS
Follow: this CVE · Mechanize Project · Mechanize Project Mechanize We alert you by email or Slack (account required).
- Priority
- 63
- CVSS 3.1
- 7.5
- EPSS
- 28.7% probability of exploitation in 30 days · percentile 99
- Auth required
- No
- Published
- Jan 17, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1333
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Mechanize.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | mechanize |
< 0.4.6 |
0.4.6 |
pip install "mechanize>=0.4.6" |
| PyPI | mechanize |
< 0.4.6 |
0.4.6 |
pip install "mechanize>=0.4.6" |
Per OSV / GitHub Advisories (GHSA-g3pv-pj5f-3hfq, PYSEC-2023-25). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mechanize_project | mechanize | < 0.4.6 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- lists.debian.org
- securitylab.github.com Exploit Third Party Advisory
- lists.debian.org