Description
h3 versions before 2.0.1-rc.18 fail to validate the chunk count parsed from user-controlled cookie values in setChunkedCookie() and deleteChunkedCookie() functions. Attackers can send a crafted cookie header with an extremely large chunk count to trigger an O(n²) cleanup loop that hangs the server process.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| h3js | h3 | 2.0.0-beta.4 – < 2.0.1-rc.18 | 2.0.1-rc.18 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | h3 | >= 2.0.0-beta.4, < 2.0.1-rc.18 | 2.0.1-rc.18 | GHSA-q5pr-72pq-83v3 |
References
- GitHub Security Advisory (GHSA-q5pr-72pq-83v3) vendor-advisory
- VulnCheck Advisory: h3 before 2.0.1-rc.18 Denial of Service via Unbounded Chunked Cookie third-party-advisory