Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
mechanize versions before 0.4.6 contain a regular expression vulnerable to regular expression denial of service (ReDoS). A malicious web server can send a response that causes mechanize to hang or crash. Upgrade to mechanize 0.4.6, which contains the fix.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 7.5 | High | 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | CNA (GitHub_M) |
- CISA KEV Not listed.
- EPSS 0.29, the 98th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
Sources
- GitHub Advisory Database: GHSA-g3pv-pj5f-3hfq
- OSV: GHSA-g3pv-pj5f-3hfq
- securitylab.github.com/advisories/GHSL-2021-108-python-mechanize-mechanize/
- github.com/python-mechanize/mechanize/commit/dd05334448e9f39814bab044d2eaa5ef69b410d6
- github.com/python-mechanize/mechanize/blob/3acb1836f3fd8edc5a758a417dd46b53832ae3b5/mechanize/_urllib2_fork.py#L878-L879
- github.com/python-mechanize/mechanize/releases/tag/v0.4.6
- github.com/advisories/GHSA-g3pv-pj5f-3hfq