GHSA-8v8h-hg4w-mvq2: Pip/hpack vulnerability

Published Sep 24, 2026
·
Updated

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 Software

1 affected componentFixes available
pip/hpack<=4.1.0
4.2.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/hpack to a version that resolves this vulnerability.

    Fixed in 4.2.0
  2. Upgrade

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

    Fixed in 4.2.0
  3. Compensating control

    Sanitize input to the hpack decoder to reject or limit long sequences of 0xFF values.

Event History

Sep 24, 2026
Advisory Published
via GitHub·07:43 PM
Data Sourced
via GitHub·07:43 PM
DescriptionWeaknessAffected Software

Frequently Asked Questions

1

Which applications are most likely to be exposed?

Applications that use python-hyper/hpack directly or through python-hyper/h2 and pass unsanitized input to the HPACK decoder are the relevant exposure cases. The issue can block further processing when sufficiently large malformed input is decoded.

2

What does an attacker need to send to trigger the problem?

The decoder must receive malformed input containing long sequences of 0xFF values. The input must be large enough for unbounded variable-integer decoding to cause runaway O(n^2) computation.

3

What can be done if upgrading is not immediately possible?

Sanitize input before it reaches the hpack decoder and reject long sequences of 0xFF values. This is the documented workaround to prevent malicious use.

4

What version contains the fix?

The fix is available in python-hyper/hpack version 4.2.0, which 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