A vulnerability in Node.js has been identified, allowing for a Denial of Service (DoS) attack through resource exhaustion when using the fetch() function to retrieve content from an untrusted URL. The vulnerability stems from the fact that the fetch() function in Node.js always decodes Brotli, making it possible for an attacker to cause resource exhaustion when fetching content from an untrusted URL. An attacker controlling the URL passed into fetch() can exploit this vulnerability to exhaust memory, potentially leading to process termination, depending on the system configuration.
https://www.cisa.gov/news-events/ics-advisories/icsa-24-319-08
https://security.netapp.com/advisory/ntap-20240517-0008/
https://lists.debian.org/debian-lts-announce/2024/03/msg00029.html