VDB
Sign up
HIGH7.5

GHSA-27c6-mcxv-x3fh

Unlimited consumption of resources in @fastify/multipart

Quick fix

GHSA-27c6-mcxv-x3fh — @fastify/multipart: upgrade to the fixed version with the command below.

npm install @fastify/multipart@8.3.1

Details

### Impact

The `saveRequestFiles` function does not delete the uploaded temporary files when user cancels the request.

### Patches

Fixed in version 8.3.1 and 9.0.3

### Workarounds

Do not use `saveRequestFiles`.

### References

This was identified in https://github.com/fastify/fastify-multipart/issues/546 and fixed in https://github.com/fastify/fastify-multipart/pull/567.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/@fastify/multipart
Introduced in: 0Fixed in: 8.3.1
Fixnpm install @fastify/multipart@8.3.1
npm/@fastify/multipart
Introduced in: 9.0.0Fixed in: 9.0.3
Fixnpm install @fastify/multipart@9.0.3

References