Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. h3
  4. ›
  5. GHSA-q5pr-72pq-83v3

GHSA-q5pr-72pq-83v3: H3: Unbounded Chunked Cookie Count in Session Cleanup Loop may Lead to Denial of Service

March 23, 2026

The setChunkedCookie() and deleteChunkedCookie() functions in h3 trust the chunk count parsed from a user-controlled cookie value (__chunked__N) without any upper bound validation. An unauthenticated attacker can send a single request with a crafted cookie header (e.g., Cookie: h3=__chunked__999999) to any endpoint using sessions, causing the server to enter an O(n²) loop that hangs the process.

References

  • github.com/advisories/GHSA-q5pr-72pq-83v3
  • github.com/h3js/h3
  • github.com/h3js/h3/security/advisories/GHSA-q5pr-72pq-83v3

Code Behaviors & Features

Detect and mitigate GHSA-q5pr-72pq-83v3 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0-beta.4 before 2.0.1-rc.18

Fixed versions

  • 2.0.1-rc.18

Solution

Upgrade to version 2.0.1-rc.18 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/h3/GHSA-q5pr-72pq-83v3.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:16:46 +0000.