CVE-2026-59980
MEDIUM 6.3CVSS 4.0hpack: Unbounded variable integer decoding can cause run-away computation on malformed input
hpack is an HTTP/2 Header Encoding for Python. Prior to version 4.2.0, unbounded variable integer decoding can cause run-away computation on malformed input leading to O(n^2) runtime, effectively blocking further processing with large enough unsanitized input. A fix is available in python-hyper/hpack v4.2.0 to restricted variable integer decoding to uint32 to prevent run-away computation. As a workaround, sanitize input to hpack decoder for long sequences of 0xFF values to prevent malicious use.
- Published
- 23 Sep 2026
- Last modified
- 1 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-400
- Also known as
- GHSA-8v8h-hg4w-mvq2PYSEC-2026-4053
- Sources
- NVDJSONOSV GHSA-8v8h-hg4w-mvq2JSONOSV PYSEC-2026-4053JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.3 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N | |
| OSV | PyPA | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | hpack | < 4.2.0 | 4.2.0 |
References
- https://cs.opensource.google/go/x/net/+/master:http2/hpack/hpack.go;l=468;drc=8e2b117aee74f6b86c207a808b0255de45c0a18a · WEB
- https://docs.rs/http2/0.5.19/src/http2/hpack/decoder.rs.html#403 · WEB
- https://github.com/python-hyper/hpack/commit/8cfb02c547740e16dbfe7aba77bad84b297cec2c · WEB
- https://github.com/python-hyper/hpack/security/advisories/GHSA-8v8h-hg4w-mvq2 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-59980 · ADVISORY
- https://github.com/python-hyper/hpack · PACKAGE
- https://github.com/python-hyper/hpack/releases/tag/v4.2.0 · WEB
- https://pypi.org/project/hpack · PACKAGE
- https://github.com/advisories/GHSA-8v8h-hg4w-mvq2 · ADVISORY
History
- 25 Nov 2026 21:21 UTC · NVD: first stored (published 23 Sep 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 1 Oct 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 Sep 2026)