VDB

CVE-2021-32837

CVE-2021-32837 PUBLISHED CVSS 7.5 HIGH

mechanize vulnerable to ReDoS

Reported by github_m · Published January 17, 2023

mechanize is fixed in dd05334448e9f39814bab044d2eaa5ef69b410d6 and 0.4.6 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
mechanizePyPIdd05334448e9f39814bab044d2eaa5ef69b410d6, 0.4.6
mechanizeRubyGems0.4.6
mechanizemechanize_project0.4.6
mechanizepython-mechanize0.4.6

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
python-mechanizemechanize0.4.6
PyPImechanize0
python-mechanizemechanize0.4.6
RubyGemsmechanize0

Timeline

  • Jan 17, 2023 CVE Published
  • Jan 18, 2023 EPSS Score (30 in total, the first dated here)
  • Dec 22, 2025 CVE Updated
  • Mar 10, 2026 Security Advisory (3 in total, the first dated here)
  • Aug 1, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-32837
vulnetix vdb fixes CVE-2021-32837

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-32837/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›