PYSEC-2026-4053

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/hpack/PYSEC-2026-4053.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-4053
Aliases
Published
2026-10-01T16:38:39Z
Modified
2026-10-01T17:45:03Z
Severity
  • 6.3 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
hpack: Unbounded variable integer decoding can cause run-away computation on malformed input
Details

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.

References

Affected packages

PyPI / hpack

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
4.2.0

Affected versions

1.*
1.0.0
1.0.1
1.1.0
2.*
2.0.0
2.0.1
2.1.0
2.1.1
2.2.0
2.3.0
3.*
3.0.0
4.*
4.0.0
4.1.0

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/hpack/PYSEC-2026-4053.yaml"