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%
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.
CVE-2025-32388Medium· 5.4@sveltejs/kit vulnerable to Cross-site Scripting via tracked search_params
CVE-2023-29003High· 8.8SvelteKit vulnerable to Cross-Site Request Forgery
CVE-2024-23641High· 7.5Sending a GET or HEAD request with a body crashes SvelteKit
CVE-2023-29008High· 8.8SvelteKit framework has Insufficient CSRF protection for CORS requests
CVE-2026-66062Medium· 5.3SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte
GHSA-wqjv-9729-c5q2Medium· 5.3SvelteKit: Big remote form function payloads can cause Node process to crash