VDB
KO
MEDIUM 5.3

GHSA-29g2-3rmr-qm68

SvelteKit: ReDoS (O(n^2)) in content negotiation — unauthenticated DoS via the Accept header

Quick fix

GHSA-29g2-3rmr-qm68 — @sveltejs/kit: upgrade to the fixed version with the command below.

npm install @sveltejs/kit@2.70.2

Details

### Impact SvelteKit is vulnerable to remote CPU-exhaustion DoS attacks via specifically-crafted `Accept` headers. The impact is mitigated by default header length limits on most platforms, but in the case of raised or absent limits a denial of service is possible.

### Patches The vulnerability is patched in `@sveltejs/kit` version 2.70.2.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / @sveltejs/kit
Introduced in: 0 Fixed in: 2.70.2
Fix npm install @sveltejs/kit@2.70.2

References