Inadequate file size control In @sveltejs/kit
Description
SvelteKit has deserialization expansion in unvalidated form remote function leading to Denial of Service (experimental only)
Some relatively small inputs can cause very large files arrays in form handlers. If the SvelteKit application code doesn't check files.length or individual files' sizes and performs expensive processing with them, it can result in Denial of Service.
Only users with experimental.remoteFunctions: true who are using the form function and are processing the files array without validation are vulnerable.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Package | Affected version | Patched versions |
|---|---|---|---|
npm | 2.53.3 |
Aliases
1. 2.
References
1. 2. 3.