Advisory

PYSEC-2026-3628

Also known as: CVE-2026-71554, GHSA-6hr6-w5qg-qmwg

Summary

h2: Duplicate Host header could facilitate request smuggling

Details

Impact
h2 <=4.4.0 accepts request header blocks containing more than one Host header, and forwards every Host header to the consuming application. Where the consumer downgrades HTTP/2 to HTTP/1.1, the resulting request carries two Host header lines, which is a request smuggling primitive (CWE-444).

Patches
Patched and fixed in v4.4.1

Workarounds
Users of the h2 library are advised to check and follow HTTP semantics best practices in their application code. h2 provides best effort sanity checks, but ultimately the calling code is responsible to ensure proper and safe usage of HTTP/2 as provided by h2, hyperframe, and hpack.

References
Similar to the previously disclosed and fixed duplicate content-length issue.

Severity

Medium Basis: CVSS v3 score 5.3, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Dates

Published
2026-08-10 10:43 UTC
Modified
2026-08-10 11:30 UTC

Affected packages and fixes

h2

PyPI · All systems

Affected

  • introduced 0, fixed 4.4.1 (ecosystem)

Fixed versions

4.4.1

Fix

  • Fixed version 4.4.1
    pip install --upgrade h2==4.4.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences