USN-9123-1: mechanize vulnerability

Publication date

17 November 2026

Overview

mechanize could be made to consume excessive resources if it received specially crafted network traffic.


Packages

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.

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

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package Version
20.04 LTS focal python3-mechanize –  1:0.4.5-2ubuntu0.1~esm1  
18.04 LTS bionic python-mechanize –  1:0.2.5-3ubuntu0.18.04.1~esm1  
16.04 LTS xenial python-mechanize –  1:0.2.5-3ubuntu0.16.04.1~esm1

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.


Have additional questions?

Talk to a member of the team ›