Packages / @fastify/multipart / Security
Denial of service due to unlimited number of parts
Affected releases · @fastify/multipart
- 7.x7.0.0 – 7.4.0Fixed in 7.4.1
- 6.x6.0.0Fixed in 6.0.1
On 7.x, the newest line:
npm install @fastify/multipart@7.4.1Not affected
10.0.0 – 10.1.6
8 releases, latest
Affected
7.0.0 – 7.4.0
7 releases
Fixed
7.4.1 – 7.7.3
9 releases
Affected
6.0.0
1 release
Fixed
6.0.1
1 release
Is your project affected?
Paste your package.json, or type the range you declare for @fastify/multipart. It is read in your browser and sent nowhere.
What happens
Impact
The multipart body parser accepts an unlimited number of file parts.
The multipart body parser accepts an unlimited number of field parts.
The multipart body parser accepts an unlimited number of empty parts as field parts.
Patches
This is fixed in v7.4.1 (for Fastify v4.x) and v6.0.1 (for Fastify v3.x).
Workarounds
There are no known workaround.
References
Reported at hackerone.com/reports/1816195.