Home / mailings [USN-9123-1] mechanize vulnerability
Posted on 17 November 2026
Ubuntu Security==========================================================================Ubuntu Security Notice USN-9123-1
November 17, 2026
python-mechanize vulnerability
==========================================================================
A security issue affects these releases of Ubuntu and its derivatives:
- Ubuntu 20.04 LTS
- Ubuntu 18.04 LTS
- Ubuntu 16.04 LTS
Summary:
mechanize could be made to consume excessive resources if it received
specially crafted network traffic.
Software Description:
- python-mechanize: stateful programmatic web browsing
Details:
Erik Krogh Kristensen and Rasmus Petersen discovered that mechanize used an
inefficient regular expression to parse authentication headers. A malicious
server could possibly use this issue to cause mechanize to consume
excessive resources, leading to a denial of service.
Update instructions:
The problem can be corrected by updating your system to the following
package versions:
Ubuntu 20.04 LTS
python3-mechanize 1:0.4.5-2ubuntu0.1~esm1
Available with Ubuntu Pro
Ubuntu 18.04 LTS
python-mechanize 1:0.2.5-3ubuntu0.18.04.1~esm1
Available with Ubuntu Pro
Ubuntu 16.04 LTS
python-mechanize 1:0.2.5-3ubuntu0.16.04.1~esm1
Available with Ubuntu Pro
In general, a standard system update will make all the necessary changes.
References:
https://ubuntu.com/security/notices/USN-9123-1
CVE-2021-32837
--===============2081166292360089851==Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
