Skip to content

http.client reads infinite chunked response trailers or 1xx headers #150743

Closed

Description

@gpshead

Bug report

Bug description:

The http.client library can be trapped forever by a server sending infinite chunked response trailers or 1xx header responses more rapidly than any optional timeout= used on the request. This was reported to us as https://github.com/python/cpython/security/advisories/GHSA-w4q2-g22w-6fr4 by @YLChen-007 - low severity given it requires equivalent server resources to tie up a client so it isn't a DoS amplification. This builds upon the partial fix for #88188 for GHSA-hr7v-m862-8hh8 which did not address these cases.

CPython versions tested on:

CPython main branch all the way back through 3.10 (and presumably much older EoL versions... this is old code)

Linked PRs

Activity

  1. self-assigned this
    on Jun 1, 2026
  2. added
    stdlibStandard Library Python modules in the Lib/ directory
    3.11only security fixes
    3.12only security fixes
    3.13only security fixes
    3.14bugs and security fixes
    3.15bugs and security fixes
    3.16new features, bugs and security fixes
    and removed
    type-bugAn unexpected behavior, bug, or error
    on Jun 2, 2026
  3. added 4 commits that reference this issue on Jun 28, 2026
  4. gpshead commented on Jun 28, 2026

    @gpshead
    MemberAuthor

    Fixes are merging and/or assigned to their RMs to be merged for the security only backports.

  5. added a commit that references this issue on Jun 28, 2026
  6. added 2 commits that reference this issue on Jun 28, 2026
  7. added a commit that references this issue on Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.10 (EOL)end of life3.11only security fixes3.12only security fixes3.13only security fixes3.14bugs and security fixes3.15bugs and security fixes3.16new features, bugs and security fixesstdlibStandard Library Python modules in the Lib/ directorytype-securityA security issue

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions