@conform-to/dom parseSubmission vulnerable to CPU exhaustion when parsing many unique form fields
🔗 CVE IDs covered (1)
📋 Description
A CPU exhaustion vulnerability exists in Conform's parseSubmission future API when parsing FormData or URLSearchParams submissions with many unique field names. The parser previously looked up values by field name, which could require repeated scans of the submitted entries and cause excessive synchronous CPU work if an attacker supplies a crafted submission.
[!NOTE] The patched version fixes this by iterating submitted entries directly instead of repeatedly looking up values by field name. Applications that accept untrusted form submissions should still enforce request parsing limits before passing data to Conform. For multipart requests, @remix-run/form-data-parser provides
maxParts,maxTotalSize,maxFileSize,maxFiles, andmaxHeaderSizeoptions.
🎯 Affected products1
- npm/@conform-to/dom:>= 1.8.0, < 1.19.4