PYSEC-2026-142

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/urllib3/PYSEC-2026-142.yaml
JSON Data
https://api.test.osv.dev/v1/vulns/PYSEC-2026-142
Aliases
Published
2026-05-13T16:16:57.303Z
Modified
2026-05-20T09:19:21.038869Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
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.

References

Affected packages

PyPI / urllib3

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.0
Fixed
2.7.0

Affected versions

2.*
2.6.0
2.6.1
2.6.2
2.6.3

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/urllib3/PYSEC-2026-142.yaml"