Advisory

GHSA-g3pv-pj5f-3hfq

Also known as: CVE-2021-32837, PYSEC-2023-25

Summary

mechanize Regular Expression Denial of Service vulnerability

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-01-18 00:30 UTC
Modified
2025-12-22 16:59 UTC

Affected packages and fixes

mechanize

PyPI · All systems

Affected

  • introduced 0, fixed 0.4.6 (ecosystem)

Fixed versions

0.4.6

Fix

  • Fixed version 0.4.6
    pip install --upgrade mechanize==0.4.6

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences