The saveRequestFiles function does not delete the uploaded temporary files when user cancels the request.
Fixed in version 8.3.1 and 9.0.3
Do not use saveRequestFiles.
This was identified in https://github.com/fastify/fastify-multipart/issues/546 and fixed in https://github.com/fastify/fastify-multipart/pull/567.
{
"cwe_ids": [
"CWE-770"
],
"github_reviewed": true,
"github_reviewed_at": "2025-01-23T18:02:07Z",
"nvd_published_at": "2025-01-23T18:15:33Z",
"severity": "HIGH"
}