# CVE-2024-22025: Denial of service in Node

> An attacker can cause a Denial of Service in Node.js applications by exploiting resource exhaustion in the fetch() function when retrieving content from untrusted URLs.

- **Severity:** Medium 6.5 (`CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 19 Mar 2024
- **Updated:** 4 Nov 2025
- **Also known as:** AZL-35898, AZL-35909, AZL-35911, BELL-CVE-2024-22025, BIT-node-2024-22025, BIT-node-min-2024-22025, CLSA-2025-1757609292, DEBIAN-CVE-2024-22025, GHSA-xp28-3fv9-33c6, UBUNTU-CVE-2024-22025

## What is CVE-2024-22025?

CVE-2024-22025 is a medium-severity denial of service vulnerability in NodeJS Node, published on 19 Mar 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

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.

Weakness: CWE-404 (Improper Resource Shutdown or Release)

## Which versions are affected by CVE-2024-22025?

2 open source packages ship an affected version, including node and node-min.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `node` | Bitnami | All versions | 18.19.1, 20.11.1, 21.6.2 |
| `node-min` | Bitnami | All versions | 18.19.1, 20.11.1, 21.6.2 |

## How do I fix CVE-2024-22025?

Upgrade node to a fixed version for your release line: 18.19.1, 20.11.1 or 21.6.2.

## Is CVE-2024-22025 being exploited?

There is no known exploitation of CVE-2024-22025 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-22025 and fix it if it is affected.

What it is: CVE-2024-22025 is a medium-severity denial of service vulnerability in NodeJS Node, published on 19 Mar 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2024-22025 in the wild and no public exploit code.

Affected packages and fixed versions:
- node (Bitnami): affected all versions; fixed in 18.19.1, 20.11.1, 21.6.2
- node-min (Bitnami): affected all versions; fixed in 18.19.1, 20.11.1, 21.6.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-22025/ (Markdown: https://insights.sbomify.com/CVE-2024-22025/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-22025
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-22025
- OSV: https://osv.dev/vulnerability/CVE-2024-22025

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-22025/
Summaries are generated and may contain mistakes; the official description above is the record.
