IMPORTANT! Update Node.JS to 18.19.1, 20.11.1, 21.6.2 or newer!
Older versions of Node.JS had a CVE-2024-22019 vulnerability, which involves sending specially constructed HTTP request with chunked encoding, which leads to resource exhaustion and denial of service (DoS).
The original vulnerability description:
A vulnerability in Node.js HTTP servers allows an attacker to send a specially crafted HTTP request with chunked encoding, leading to resource exhaustion and denial of service (DoS). The server reads an unbounded number of bytes from a single connection, exploiting the lack of limitations on chunk extension bytes. The issue can cause CPU and network bandwidth exhaustion, bypassing standard safeguards like timeouts and body size limits.
Future SVR.JS versions will warn you about this vulnerability in server logs, if you're running affected versions of Node.JS.