Vulnerabilities in pkg:npm/@fastify/multipart
PACKAGECVE-2025-24033 is a HIGH (CVSS 7.5) remote code execution vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting @fastify/multipart libraries in the npm ecosystem. The issue involves unlimited consumption of resources in @fastify/multipart. Remediation is available by upgrading affected packages to version 8.3.1, 9.0.3.
pkg:npm/@fastify/multipart
Vulnerability advisories affecting package pkg:npm/@fastify/multipart. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-27c6-mcxv-x3fh | CVE-2025-24033 | HIGH | Unlimited consumption of resources in @fastify/multipart |
| GHSA-hpp2-2cr5-pf6g | CVE-2023-25576 | HIGH | Denial of service due to unlimited number of parts |
CVE-2025-24033 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2025-24033
To remediate this vulnerability, upgrade all affected @fastify/multipart 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/multipart@8.3.1
npm install @fastify/multipart@9.0.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @fastify/multipart
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-24033, inspect your project dependencies using npm:
npm ls @fastify/multipart
Analyze the terminal output to locate any version of @fastify/multipart in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.3.1), your application is affected.
Note: The npm ls @fastify/multipart 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/multipart, 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-2025-24033 Affected @fastify/multipart Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@fastify/multipart
|
npm |
< 8.3.1
|
8.3.1
|
|
@fastify/multipart
|
npm |
≥ 9.0.0
< 9.0.3
|
9.0.3
|
References
Frequently Asked Questions
What is CVE-2025-24033?
Which @fastify/multipart versions are affected?
What version fixes CVE-2025-24033?
Is @fastify/multipart affected?
What is the CVSS score of CVE-2025-24033?
What CWE is associated with CVE-2025-24033?
How can I check npm dependencies for CVE-2025-24033?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-27c6-mcxv-x3fh",
"modified" : "2025-01-23T23:17:17Z",
"published" : "2025-01-23T18:02:07Z",
"aliases" : [ "CVE-2025-24033" ],
"summary" : "Unlimited consumption of resources in @fastify/multipart",
"details" : "### Impact\n\nThe `saveRequestFiles` function does not delete the uploaded temporary files when user cancels the request.\n\n### Patches\n\nFixed in version 8.3.1 and 9.0.3\n\n### Workarounds\n\nDo not use `saveRequestFiles`.\n\n### References\n\nThis was identified in https://github.com/fastify/fastify-multipart/issues/546 and fixed in https://github.com/fastify/fastify-multipart/pull/567.\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@fastify/multipart"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "8.3.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 8.3.0"
}
}, {
"package" : {
"ecosystem" : "npm",
"name" : "@fastify/multipart"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.0.0"
}, {
"fixed" : "9.0.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/fastify/fastify-multipart/security/advisories/GHSA-27c6-mcxv-x3fh"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-24033"
}, {
"type" : "WEB",
"url" : "https://github.com/fastify/fastify-multipart/issues/546"
}, {
"type" : "WEB",
"url" : "https://github.com/fastify/fastify-multipart/pull/567"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/fastify/fastify-multipart"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-770" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-01-23T18:02:07Z",
"nvd_published_at" : "2025-01-23T18:15:33Z"
}
}