CVE-2024-53262Low· 4.2▾ Sunlit@sveltejs/kit has unescaped error message included on error page
▾ Sunlit zone — Low / medium · no exploitation signal
impact 23.1 · likelihood 0.1 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Oct 18.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via GHSA
Last analysed / modified upstream
0.5%
0.5% → 0.5%
The static error.html template for errors contains placeholders that are replaced without escaping the content first.
From https://kit.svelte.dev/docs/errors:
error.html is the page that is rendered when everything else fails. It can contain the following placeholders: %sveltekit.status% — the HTTP status %sveltekit.error.message% — the error message
This leads to possible injection if an app explicitly creates an error with a message that contains user controlled content that ends up being something like this inside a server handle function:
error(500, '<script>alert("boom")</script>');
Uncaught errors cannot be exploited like this, as they always render the message "Internal error".
Escaping the message string in the function that creates the html output can be done to improve safety for applications that are using custom errors on the server.
None provided
Only applications where user provided input is used in the Error message will be vulnerable, so the vast majority of applications will not be vulnerable
@sveltejs/kit < 2.8.3Upgrade to a patched release:
@sveltejs/kit 2.8.3Connected by shared product, vendor, weakness, or advisory.
GHSA-85pr-xr59-r75hLow· 4.7Duplicate Advisory: SvelteKit before 3.0.0 XSS via Cache-Control Header in Prerendered Pages
CVE-2025-32388Medium· 5.4@sveltejs/kit vulnerable to Cross-site Scripting via tracked search_params
GHSA-pvhg-7v4p-f5q9Low· 4.7Duplicate Advisory: SvelteKit before 3.0.0 Open Redirect via Enhanced Form Actions
CVE-2026-114060Low· 4.7SvelteKit: URL redirection to untrusted site via enhanced form submission
CVE-2026-114061Medium· 4.7SvelteKit before 3.0.0 XSS via Cache-Control Header in Prerendered Pages
CVE-2023-29003High· 8.8SvelteKit vulnerable to Cross-Site Request Forgery