ADVISORIES

GitHub Advisory Database

GHSA-27c6-mcxv-x3fh

Unlimited consumption of resources in @fastify/multipart

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.

Affected packages

EcosystemPackageAffected versions
npm@fastify/multipart
All versions before 8.3.1 (fixed in 8.3.1)
npm@fastify/multipart
From 9.0.0 before 9.0.3 (fixed in 9.0.3)

References