The vulnerability is a classic uncontrolled recursion issue within the removeUploadedFiles function in lib/remove-uploaded-files.js. The function uses a recursive pattern to iterate over and remove uploaded files. The patch 7e66481f8b2e6c54b982b34c152479e096ce2752 directly addresses this by changing the synchronous recursive call handleFile(idx + 1) to an asynchronous one using setImmediate. This prevents the call stack from growing indefinitely when processing a large number of files, which could be triggered by a malicious multipart request. The added test case explicitly simulates this scenario with 25,000 files to confirm the fix, reinforcing that removeUploadedFiles is the vulnerable function.