Advisory

UBUNTU-CVE-2026-21441

Also known as: CVE-2026-21441

Summary

The record has no summary.

Details

urllib3 is an HTTP client library for Python. urllib3's streaming API is designed for the efficient handling of large HTTP responses by reading the content in chunks, rather than loading the entire response body into memory at once. urllib3 can perform decoding or decompression based on the HTTP Content-Encoding header (e.g., gzip, deflate, br, or zstd). When using the streaming API, the library decompresses only the necessary bytes, enabling partial content consumption. Starting in version 1.22 and prior to version 2.6.3, for HTTP redirect responses, the library would read the entire response body to drain the connection and decompress the content unnecessarily. This decompression occurred even before any read methods were called, and configured read limits did not restrict the amount of decompressed data. As a result, there was no safeguard against decompression bombs. A malicious server could exploit this to trigger excessive resource consumption on the client. Applications and libraries are affected when they stream content from untrusted sources by setting preload_content=False when they do not disable redirects. Users should upgrade to at least urllib3 v2.6.3, in which the library does not decode content of redirect responses when preload_content=False. If upgrading is not immediately possible, disable redirects by setting redirect=False for requests to untrusted source.

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-01-08 00:00 UTC
Modified
2026-10-17 12:55 UTC

Affected packages and fixes

python-urllib3

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 1.26.5-1~exp1ubuntu0.5 (ecosystem)

Fixed versions

1.26.5-1~exp1ubuntu0.5

Fix

  • Fixed version 1.26.5-1~exp1ubuntu0.5
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

python-urllib3

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 2.0.7-1ubuntu0.4 (ecosystem)

Fixed versions

2.0.7-1ubuntu0.4

Fix

  • Fixed version 2.0.7-1ubuntu0.4
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

python-pip

Debian packages (deb) · Ubuntu 25.10

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

python-urllib3

Debian packages (deb) · Ubuntu 25.10

Affected

  • introduced 0, fixed 2.3.0-3ubuntu0.2 (ecosystem)

Fixed versions

2.3.0-3ubuntu0.2

Fix

  • Fixed version 2.3.0-3ubuntu0.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

python-pip

Debian packages (deb) · Ubuntu 26.10

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

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: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences