CVE-2024-22019
npm vulnerability analysis and mitigation

Overview

A vulnerability in Node.js HTTP servers (CVE-2024-22019) allows attackers to send specially crafted HTTP requests with chunked encoding, leading to resource exhaustion and denial of service (DoS). The vulnerability was discovered and disclosed in February 2024, affecting all active Node.js release lines: 18.x, 20.x, and 21.x. The issue has been assigned a CVSS v3.0 base score of 7.5 (HIGH) (HackerOne).

Technical details

The vulnerability exploits the lack of limitations on chunk extension bytes in Node.js HTTP servers. When processing HTTP requests with chunked encoding, the server reads an unbounded number of bytes from a single connection. This unbounded reading bypasses standard safeguards such as timeouts and body size limits (NodeJS Blog).

Impact

The successful exploitation of this vulnerability can cause CPU and network bandwidth exhaustion, leading to denial of service conditions. The attack can effectively bypass standard resource usage safeguards, potentially impacting the availability of Node.js HTTP servers (NodeJS Blog, NetApp Advisory).

Mitigation and workarounds

The vulnerability has been patched in Node.js versions 18.19.1, 20.11.1, and 21.6.2. Users are strongly advised to upgrade to these or later versions to address the security issue (OSS Security).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management