Resource Exhaustion Affecting npm package, versions <1:10.5.0-1.20.12.2.2.module+el9.4.0+21731+46b5b8a7


Severity

Recommended
high

Based on CentOS security rating.

Threat Intelligence

EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CENTOS9-NPM-6474774
  • published21 Mar 2024
  • disclosed19 Mar 2024

Introduced: 19 Mar 2024

CVE-2024-22025  (opens in a new tab)
CWE-400  (opens in a new tab)

How to fix?

Upgrade Centos:9 npm to version 1:10.5.0-1.20.12.2.2.module+el9.4.0+21731+46b5b8a7 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream npm package and not the npm package as distributed by Centos. See How to fix? for Centos:9 relevant fixed versions and status.

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.

CVSS Scores

version 3.1