The fetch() API supports chained HTTP encoding algorithms for response content according to RFC 9110 (e.g., Content-Encoding: gzip, br). This is also supported by the undici decompress interceptor.
However, the number of links in the decompression chain is unbounded and the default maxHeaderSize allows a malicious server to insert thousands compression steps leading to high CPU usage and excessive memory allocation.
Upgrade to 7.18.2 or 6.23.0.
It is possible to apply an undici interceptor and filter long Content-Encoding sequences manually.
{
"cwe_ids": [
"CWE-770"
],
"severity": "LOW",
"nvd_published_at": "2026-01-14T19:16:47Z",
"github_reviewed": true,
"github_reviewed_at": "2026-01-14T21:06:08Z"
}