REDHAT-BUG-2447140: Medium severity npm/undici vulnerability
This is an uncontrolled resource consumption vulnerability (CWE-400) that can lead to Denial of Service (DoS).
In vulnerable Undici versions, when interceptors.deduplicate() is enabled, response data for deduplicated requests could be accumulated in memory for downstream handlers. An attacker-controlled or untrusted upstream endpoint can exploit this with large/chunked responses and concurrent identical requests, causing high memory usage and potential OOM process termination.
Impacted users are applications that use Undici’s deduplication interceptor against endpoints that may produce large or long-lived response bodies.
PatchesThe issue has been patched by changing deduplication behavior to stream response chunks to downstream handlers as they arrive (instead of full-body accumulation), and by preventing late deduplication when body streaming has already started.
Users should upgrade to the first official Undici (and Node.js, where applicable) releases that include this patch.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2447140?
The severity of REDHAT-BUG-2447140 is classified as medium with a score of 4.
What type of vulnerability is REDHAT-BUG-2447140?
REDHAT-BUG-2447140 is an uncontrolled resource consumption vulnerability categorized under CWE-400.
How does REDHAT-BUG-2447140 impact system performance?
REDHAT-BUG-2447140 can lead to Denial of Service (DoS) by allowing an attacker to exploit resource consumption and cause memory issues.
How do I fix REDHAT-BUG-2447140?
To mitigate REDHAT-BUG-2447140, it is recommended to update to the latest version of the npm/undici package where the vulnerability is resolved.
In which versions of software does REDHAT-BUG-2447140 exist?
REDHAT-BUG-2447140 exists in vulnerable versions of npm/undici where the interceptors.deduplicate() feature is enabled.