CVE-2026-25224: Fastify Denial of Service Vulnerability
LOWCVE-2026-25224 is a LOW (CVSS 3.7) denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Fastify libraries in the npm ecosystem. The issue involves fastify vulnerable to dos via unbounded memory allocation in sendwebstream. Remediation is available by upgrading affected packages to version 5.7.3.
CVE-2026-25224 at a Glance
Security Impact
CVSS: 3.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2026-25224
To remediate this vulnerability, upgrade all affected Fastify dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install fastify@5.7.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls fastify
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-25224, inspect your project dependencies using npm:
npm ls fastify
Analyze the terminal output to locate any version of Fastify in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.7.3), your application is affected.
Note: The npm ls fastify command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Fastify, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-25224 Affected Fastify Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
fastify
|
npm |
< 5.7.3
|
5.7.3
|
References
Frequently Asked Questions
What is CVE-2026-25224?
Which Fastify versions are affected?
What version fixes CVE-2026-25224?
Is fastify affected?
What is the CVSS score of CVE-2026-25224?
What CWE is associated with CVE-2026-25224?
How can I check npm dependencies for CVE-2026-25224?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mrq3-vjjr-p77c",
"modified" : "2026-02-04T17:46:06Z",
"published" : "2026-02-02T22:25:05Z",
"aliases" : [ "CVE-2026-25224" ],
"summary" : "Fastify Vulnerable to DoS via Unbounded Memory Allocation in sendWebStream",
"details" : "### Impact\nA Denial of Service vulnerability in Fastify’s Web Streams response handling can allow a remote client to exhaust server memory. Applications that return a `ReadableStream` (or `Response` with a Web Stream body) via `reply.send()` are impacted. A slow or non-reading client can trigger unbounded buffering when backpressure is ignored, leading to process crashes or severe degradation.\n\n### Patches\nThe issue is fixed in Fastify 5.7.3. Users should upgrade to 5.7.3 or later.\n\n### Workarounds\nAvoid sending Web Streams from Fastify responses (e.g., `ReadableStream` or `Response` bodies). Use Node.js streams (`stream.Readable`) or buffered payloads instead until the project can upgrade.\n\n### References\n- https://hackerone.com/reports/3524779",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "fastify"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.7.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 5.7.2"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/fastify/fastify/security/advisories/GHSA-mrq3-vjjr-p77c"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-25224"
}, {
"type" : "WEB",
"url" : "https://github.com/fastify/fastify/commit/eb11156396f6a5fedaceed0140aed2b7f026be37"
}, {
"type" : "WEB",
"url" : "https://hackerone.com/reports/3524779"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/fastify/fastify"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-770" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-02-02T22:25:05Z",
"nvd_published_at" : "2026-02-03T22:16:31Z"
}
}