CVE-2026-97688: urllib3 Infinite Loop in Chunked Deflate Streaming

urllib3 Updated 30 Sep 2026

Summary

30/09/2026
Yes i
Moderate
6.9

CVE-2026-97688: urllib3: Chunked Deflate streaming can enter an infinite loop. Affects urllib3 versions >= 2.6.2, < 2.8.0. Fixed in 2.8.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

urllib3 is a powerful, user-friendly HTTP client for Python that allows developers to send HTTP requests and handle responses efficiently. It is designed to manage large HTTP responses by streaming content in chunks, which conserves memory and improves performance. However, certain versions of urllib3 are vulnerable to a specific issue when handling compressed, chunked responses, particularly when the response comes from untrusted sources.

Vulnerability Detail

The vulnerability arises in urllib3 versions 2.6.2 through 2.7.0, where the streaming API can enter an infinite loop when processing a chunked response that contains bytes after the end of the Deflate stream. This occurs because the zlib implementation in Python retains trailing bytes as unconsumed input, leading urllib3 to repeatedly attempt to decode the same bytes without making progress. A malicious server could exploit this flaw, causing excessive CPU usage and preventing the affected request from completing, as network read timeouts would not interrupt the loop due to the lack of further socket operations.

How To Fix

Latest published version: 2.8.0 as of 23 Oct 2026

pip install --upgrade "urllib3==2.8.0"

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading is not immediately feasible, you can disable automatic content decoding for responses from untrusted sources by setting decode_content=False in your HTTP request. Alternatively, you can reject streamed responses that use Deflate content encoding.

Conclusion

The vulnerability identified as CVE-2026-97688 in urllib3 poses a significant risk when handling compressed, chunked HTTP responses from untrusted sources. It is crucial to upgrade to the patched version 2.8.0 or implement workarounds to mitigate potential exploitation.

See every vulnerability recorded for urllib3 →

Share this vulnerability

FAQ

urllib3 versions 2.6.2 through 2.7.0 are affected by this vulnerability.

The vulnerability can lead to excessive CPU usage and prevent HTTP requests from completing, potentially causing denial of service.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

If you cannot upgrade, disable automatic content decoding for untrusted sources or avoid using Deflate content encoding for streamed responses.

The CVSS score of this vulnerability is 6.9, indicating a moderate severity level.

Related vulnerabilities

Recent vulnerabilities recorded for urllib3.

How To Fix

Latest published version: 2.8.0 as of 23 Oct 2026

pip install --upgrade "urllib3==2.8.0"

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback