Skip to content
Heist/ feed
Back to feed
Medium

python-hpack — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-59980

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.

Products
python-hpack
Affected versions
1.1.0-1, 2.0.1-1, 2.1.0-1, 3.0.0-1, 3.0.0-2, 3.0.0-3, 3.0.0-4, 4.0.0-2, 4.0.0-3, 4.0.0-4
Fixed versions
Not specified
CVEs
CVE-2026-59980
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:43 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-59980

core-osv · Original source

Published 23 Sept 2026, 23:17 UTC

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.

osv:UBUNTU-CVE-2026-59980

python-hpack

Fixed versions: Not specified

python-hpack

Fixed versions: Not specified

python-hpack

Fixed versions: Not specified

python-hpack

Fixed versions: Not specified

python-hpack

Fixed versions: Not specified

python-hpack

Fixed versions: Not specified

python-hpack

Fixed versions: Not specified

Complete source record
{
  "id": "3bf96adfad90ef2d84ef9afaa63d6a608e1fc6f90c61361a618258cc28b427fa",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-59980",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-59980",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-59980",
    "products": [
      {
        "name": {
          "value": "python-hpack",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.1.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.0.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.1.0-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-hpack",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.0.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.0.0-2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-hpack",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.0.0-3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "3.0.0-4",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-hpack",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.0-2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-hpack",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.0-2",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-hpack",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.0-3",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "4.0.0-4",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-hpack",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "4.0.0-3",
            "evidence": "/affected/6/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-59980",
      "aliases": [
        "UBUNTU-CVE-2026-59980"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-hpack",
            "purl": "pkg:deb/ubuntu/python-hpack?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "1.1.0-1",
            "2.0.1-1",
            "2.1.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-59980.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-hpack",
                "binary_version": "2.1.0-1"
              },
              {
                "binary_name": "python3-hpack",
                "binary_version": "2.1.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-hpack",
            "purl": "pkg:deb/ubuntu/python-hpack?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "3.0.0-1",
            "3.0.0-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-59980.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-hpack",
                "binary_version": "3.0.0-2"
              },
              {
                "binary_name": "python3-hpack",
                "binary_version": "3.0.0-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-hpack",
            "purl": "pkg:deb/ubuntu/python-hpack?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "3.0.0-3",
            "3.0.0-4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-59980.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-hpack",
                "binary_version": "3.0.0-4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-hpack",
            "purl": "pkg:deb/ubuntu/python-hpack?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "4.0.0-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-59980.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-hpack",
                "binary_version": "4.0.0-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-hpack",
            "purl": "pkg:deb/ubuntu/python-hpack?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "4.0.0-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-59980.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-hpack",
                "binary_version": "4.0.0-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-hpack",
            "purl": "pkg:deb/ubuntu/python-hpack?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "4.0.0-3",
            "4.0.0-4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-59980.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-hpack",
                "binary_version": "4.0.0-4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-hpack",
            "purl": "pkg:deb/ubuntu/python-hpack?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "4.0.0-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-59980.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-hpack",
                "binary_version": "4.0.0-3"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:00.350186752Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-59980"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-59980",
        "https://www.cve.org/CVERecord?id=CVE-2026-59980",
        "https://github.com/python-hyper/hpack/security/advisories/GHSA-8v8h-hg4w-mvq2",
        "https://github.com/python-hyper/hpack/commit/8cfb02c547740e16dbfe7aba77bad84b297cec2c",
        "https://cs.opensource.google/go/x/net/+/master:http2/hpack/hpack.go;l=468;drc=8e2b117aee74f6b86c207a808b0255de45c0a18a",
        "https://docs.rs/http2/0.5.19/src/http2/hpack/decoder.rs.html#403"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-59980",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 354522,
  "published_at": "2026-09-23T23:17:00+00:00"
}