Vulnerabilities/

@sveltejs/kit vulnerable to Cross-site Scripting via tracked search_params

Severity:
Medium

Description

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.

Recommendation

Update the @sveltejs/kit package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
@sveltejs/kit
Anything's wrong? Let us know Last updated on April 16, 2025

This issue is available in SmartScanner Professional

See Pricing