Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐍 PyPI
Not in CISA KEV

CVE-2026-59980 — hpack

Fix: python-hyper/hpack@8cfb02c

CVE-2026-59980 is a Uncontrolled Resource Consumption vulnerability in hpack. A fix is available for hpack — see the affected versions and patch details below.

hpack: Unbounded variable integer decoding can cause run-away computation on malformed input

Also known asGHSA-8v8h-hg4w-mvq2PYSEC-2026-4053
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Oct 22, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2026-59980.

EPSS Exploitation Probability

via FIRST.org ↗
0.3%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs22th percentile — riskier than 22% of all scored CVEsHighest risk
0.00%0.27%0.53%0.80%0.3%0.3%Oct 26Oct 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

Real-World Exposure

1 pkg affected
🐍hpack

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.

Description

Impact

Users of the python-hyper/hpack library, most commonly used as downstream dependency of the python-hyper/h2 library (an HTTP/2 client and server implementation). 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.

Patches

A fix is available in python-hyper/hpack v4.2.0 to restricted variable integer decoding to uint32 to prevent run-away computation.

Workarounds

Sanitize input to hpack decoder for long sequences of 0xFF values to prevent malicious use.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐍PyPIhpackall versions4.2.0pip install --upgrade 'hpack==4.2.0'

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for hpack, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update hpack to 4.2.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-59980 is resolved across your whole dependency graph.

  3. Workarounds

    Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.

Fixing This On Your OS

If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.

Red HatLow

A flaw was found in hpack, the Python HTTP/2 header encoding library, which is shipped as a dependency in several Red Hat products, including Red Hat OpenStack Platform, Red Hat Ansible Automation Platform, Red Hat OpenShift AI, Migration Toolkit for Containers, and cloud.redhat.com services. The library performs…

Workaround published by Red Hat
Sanitize input to hpack decoder for long sequences of `0xFF` values to prevent malicious use.
Source: Red Hat security advisory for CVE-2026-59980 (CC BY 4.0)

Frequently Asked Questions

### Impact Users of the python-hyper/hpack library, most commonly used as downstream dependency of the python-hyper/h2 library (an HTTP/2 client and server implementation). 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. ### Patches A fix is available in python-hyper/hpack v4.2.0 to restricted variable integer decoding to uint32 to prevent run-away computation. ### Workarounds Sanitize input to hpack decoder for long sequences of `0xFF` values to prev
O3 Security · Impact-Aware SCA

Is CVE-2026-59980 in your dependencies?

Find it across PyPI, including transitive dependencies.

CVE-2026-59980: hpack — Fixed in 4.2.0