Live threats

All CVEs / Mechanize Project

CVE-2021-32837Mechanize Project Mechanize

High 7.5 No auth neededHigh EPSS

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mechanize.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
mechanize_projectmechanize< 0.4.6

Official sources

References

Links published by the sources. Open them with care.