Skip to main content
← All vulnerabilities
CVE-2026-97689GHSA-VXQ7-64XX-V4GWPYSEC-2026-4177

urllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into memory

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.8.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

urllib3 is an HTTP client library for Python. From 1.10.3 until 2.8.0, the HTTPResponse.read_chunked and HTTPResponse.stream methods can allocate unbounded memory because the streaming chunk parser buffers the chunk-size field until newline or EOF without a length bound. The trigger is that a malicious server returns Transfer-Encoding: chunked followed by a very long run of bytes without a newline. The attack mechanism is that a malicious HTTP server sends a very long unterminated chunk-size line. The impact is that unbounded memory allocation can exhaust the client process. This issue is fixed in version 2.8.0.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • urllib3 urllib3

    From 1.10.3 · fixed in 2.8.0

  • urllib3PyPI

    From 1.10.3 · fixed in 2.8.0

References 3

GitHub · urllib3/urllib3