Skip to content

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

MediumCVSS 5.3 EPSS 0.51%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

Description

SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte. Prior to 2.70.2, the content negotiation header parser used by SvelteKit's request handling (for headers such as Accept) uses a regular expression vulnerable to quadratic backtracking, so a maliciously crafted header value can cause excessive CPU consumption and degrade or deny service. Version 2.70.2 fixes the issue.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
sveltejs @sveltejs/kit(npm) < 2.70.2; <= 2.70.1 2.70.2 Fixed
sveltejs @sveltejs/kit = < 2.70.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
sveltejs @sveltejs/kit = < 2.70.2 No fix listed
sveltejs @sveltejs/kit(npm) <= 2.70.1 No fix listed
sveltejs @sveltejs/kit(npm) < 2.70.2 2.70.2

References