Advisory

PYSEC-2026-142

Also known as: CVE-2026-44432, GHSA-mf9v-mfxr-j63j

Summary

The record has no summary.

Details

urllib3 is an HTTP client library for Python. From 2.6.0 to before 2.7.0, urllib3 could decompress the whole response instead of the requested portion (1) during the second HTTPResponse.read(amt=N) call when the response was decompressed using the official Brotli library or (2) when HTTPResponse.drain_conn() was called after the response had been read and decompressed partially (compression algorithm did not matter here). These issues could cause urllib3 to fully decode a small amount of highly compressed data in a single operation. This could result in excessive resource consumption (high CPU usage and massive memory allocation for the decompressed data) on the client side. This vulnerability is fixed in 2.7.0.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2026-05-13 16:16 UTC
Modified
2026-05-20 09:19 UTC

Affected packages and fixes

urllib3

PyPI · All systems

Affected

  • introduced 2.6.0, fixed 2.7.0 (ecosystem)

Fixed versions

2.7.0

Fix

  • Fixed version 2.7.0
    pip install --upgrade urllib3==2.7.0

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: PyPA Advisory Database · CC BY 4.0

Sources & licences