hpack@2.3.0

Pure-Python HPACK header encoding

  • latest version

    4.2.0

  • latest non vulnerable version

  • first published

    11 years ago

  • latest version published

    3 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the hpack package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Allocation of Resources Without Limits or Throttling

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the decode_integer function in src/hpack/hpack.py, where an attacker can send an HPACK-encoded integer with an unbounded number of continuation octets, causing run-away computation that crashes the decoder. The HPACK RFC 7541 Section 5.1 explicitly permits values of indefinite size and notes that encoders can send large numbers of zero values to waste octets or overflow integer values, and the library did not enforce any limit on the number of octets consumed during variable-length integer decoding.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade hpack to version 4.2.0 or higher.

    [,4.2.0)