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

Published Sep 23, 2026
·
Updated

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.

Affected Software

1 affected component
pypi/hpack<4.2.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade python-hyper/hpack to a version that resolves this vulnerability.

    Fixed in 4.2.0
  2. Compensating control

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

Event History

Sep 23, 2026
CVE Published
via MITRE·10:07 PM
Data Sourced
via MITRE·10:07 PM
DescriptionWeakness
Data Sourced
via NVD·11:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments using hpack versions prior to 4.2.0 are affected when they pass large, unsanitized malformed input to the hpack decoder. Input containing long sequences of 0xFF values is specifically identified as maliciously useful.

2

What does an attacker need to do to trigger the issue?

An attacker needs to cause malformed input to reach the hpack decoder, using sufficiently long variable-integer encodings such as long runs of 0xFF bytes. Processing that input can take O(n^2) time and block further processing.

3

What can be done before upgrading?

Sanitize input sent to the hpack decoder and reject long sequences of 0xFF values. The available fix in hpack 4.2.0 restricts variable-integer decoding to uint32.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203