Vulnerabilities in pkg:pypi/h2
PACKAGECVE-2026-71554 is a MODERATE (CVSS 5.3) duplicate host header could facilitate vulnerability (CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')) affecting H2 libraries in the PyPI ecosystem. The issue involves duplicate host header could facilitate request smuggling. Remediation is available by upgrading affected packages to version 4.4.1.
pkg:pypi/h2
Vulnerability advisories affecting package pkg:pypi/h2. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-6hr6-w5qg-qmwg | CVE-2026-71554 | MODERATE | h2: Duplicate Host header could facilitate request smuggling |
| GHSA-847f-9342-265h | CVE-2025-57804 | MODERATE | h2 allows HTTP Request Smuggling due to illegal characters in headers |
CVE-2026-71554 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2026-71554
To remediate this vulnerability, upgrade all affected H2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install h2>=4.4.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show h2
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-71554, inspect your installed packages using pip:
pip show h2
Analyze the terminal output to locate any version of H2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.4.1), your application is affected.
Note: The pip show h2 command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling'), where the product acts as an intermediary http agent (such as a proxy or firewall) in the data flow between two entities such as a client and server, but it does not interpret malformed http requests or responses in ways that are consistent with how the messages will be processed by those entities that are at the ultimate destination. In H2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-71554 Affected H2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
h2
|
PyPI |
< 4.4.1
|
4.4.1
|
References
Frequently Asked Questions
What is CVE-2026-71554?
Which H2 versions are affected?
What version fixes CVE-2026-71554?
Is h2 affected?
What is the CVSS score of CVE-2026-71554?
What CWE is associated with CVE-2026-71554?
How can I check PyPI dependencies for CVE-2026-71554?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6hr6-w5qg-qmwg",
"modified" : "2026-08-06T21:53:41Z",
"published" : "2026-08-06T21:53:41Z",
"aliases" : [ "CVE-2026-71554" ],
"summary" : "h2: Duplicate Host header could facilitate request smuggling",
"details" : "### Impact\nh2 <=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).\n\n### Patches\nPatched and fixed in v4.4.1\n\n### Workarounds\nUsers 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.\n\n### References\nSimilar to the previously disclosed and fixed duplicate content-length issue.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "h2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.4.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 4.4.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/python-hyper/h2/security/advisories/GHSA-6hr6-w5qg-qmwg"
}, {
"type" : "WEB",
"url" : "https://github.com/python-hyper/h2/commit/292a40829feefda98c8509dcdbbb4a57af9bd6a6"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/python-hyper/h2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-444" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-06T21:53:41Z",
"nvd_published_at" : null
}
}