@conform-to/dom parseSubmission vulnerable to CPU exhaustion when parsing many unique form fields
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, and maxHeaderSize options.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
@conform-to/domnpm | >= 1.8.0, < 1.19.4 | 1.19.4 |
Patches
Vulnerability mechanics
References
2News mentions
0No linked articles in our index yet.