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
    type-bug
    type-security
    on Jun 1, 2026
  3. added
    stdlib
    3.11
    3.10 (EOL)
    3.12
    3.13
    3.14
    3.15
    3.16
    and removed
    type-bug
    on Jun 2, 2026
  4. added 4 commits that reference this issue on Jun 28, 2026
  5. 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.

  6. added a commit that references this issue on Jun 28, 2026
  7. added 2 commits that reference this issue on Jun 28, 2026
  8. added a commit that references this issue on Aug 4, 2026
  9. added 2 commits that reference this issue on Oct 28, 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)3.113.123.133.143.153.16stdlibtype-security

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions