Description
SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte. Prior to 2.20.6 , unsanitized search param names cause XSS vulnerability. You are affected if you iterate over all entries of event.url.searchParams inside a server load function. Attackers can exploit it by crafting a malicious URL and getting a user to click a link with said URL. This vulnerability is fixed in 2.20.6.
References (3)
Core 3
Core References
Vendor Advisory x_refsource_confirm
https://github.com/sveltejs/kit/security/advisories/GHSA-6q87-84jw-cjhp
Patch x_refsource_misc
https://github.com/sveltejs/kit/commit/d3300c6a67908590266c363dba7b0835d9a194cf
Release Notes x_refsource_misc
https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%402.20.6
Scores
CVSS v3
5.4
EPSS
0.0017
EPSS Percentile
37.2%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
no
Technical Impact
partial
Details
CWE
CWE-79
Status
published
Products (2)
sveltejs/kit
2.0.0 - 2.20.6npm
sveltejs/kit
>= 2.0.0, < 2.20.6
Published
Apr 15, 2025
Tracked Since
Feb 18, 2026