undici's decompress interceptor processes response bodies according to the untrusted Content-Encoding header
undici's decompress interceptor processes response bodies according to the untrusted Content-Encoding header. Although the number of content-encoding layers is capped, the total decompressed output size is unbounded. A malicious or faulty upstream can therefore return a small compressed payload, or compression bomb, that expands to hundreds of megabytes or more in client memory, potentially exhausting memory and crashing the process.
CERT24