{"id":"CVE-2024-53262","published":"2024-11-25T19:07:20Z","modified":"2024-11-25T20:24:05Z","title":"Unescaped error message included on error page in SvelteKit","vendor":"sveltejs","product":"kit","tier":"tail","description":{"text":"SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte. The static error.html template for errors contains placeholders that are replaced without escaping the content first. error.html is the page that is rendered when everything else fails. It can contain the following placeholders: %sveltekit.status% — the HTTP status, and %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. 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 This issue has been addressed in version 2.8.3 and all users are advised to upgrade. There are no known workarounds for this vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":2,"severity":"LOW","version":"4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00513,"percentile":0.44614,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/sveltejs/kit/security/advisories/GHSA-mh2x-fcqh-fmqv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sveltejs/kit/commit/134e36343ef57ed7e6e2b3bb9e7f05ad37865794","tags":["x_refsource_MISC"]},{"url":"https://kit.svelte.dev/docs/errors","tags":["x_refsource_MISC"]}],"priority":{"score":10.3,"factors":[{"name":"EPSS percentile","points":8.92},{"name":"CVSS severity","points":1.4}]},"vendorSlug":"sveltejs","affectedVersions":[{"vendor":"sveltejs","product":"kit","versions":["< 2.8.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-11-25T20:23:50.461446Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@sveltejs/kit","vulnerableRanges":["<2.8.3"],"patched":["2.8.3"],"from":["GHSA-mh2x-fcqh-fmqv"],"provenance":"source"}],"summary":{"text":"The Kit component of the SvelteKit web framework, specifically its static error.html template, substitutes the HTTP status and error message placeholders into the page without first escaping them, so content placed into a thrown error's message is rendered unescaped. Exploitation requires an application that explicitly builds an error message from user-controlled input, which an attacker must be able to influence, and it additionally requires a user to interact with the crafted link or page, with attacks feasible over the network under limited privileges.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:18Z"},"euvd":{"id":"EUVD-2024-3369","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-sveltejs-kit-cve-2024-53262","children":[{"from":"CVE-2024-53262","to":"CVE-2025-32388","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/kit/src/runtime/server/utils.js"],"commits":["https://github.com/sveltejs/kit/commit/134e36343ef57ed7e6e2b3bb9e7f05ad37865794","https://github.com/sveltejs/kit/commit/d3300c6a67908590266c363dba7b0835d9a194cf"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2023-29008","published":"2023-04-06","fixed":"1.15.2","kev":false},{"cve":"CVE-2024-23641","published":"2024-01-24","fixed":"2.4.3","kev":false,"link":{"from":"CVE-2024-23641","to":"CVE-2024-53262","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@sveltejs/kit","fromFixed":"2.4.3","toFixed":"2.8.3","daysApart":306}]}},{"cve":"CVE-2024-53261","published":"2024-11-25","fixed":"2.8.3","kev":false},{"cve":"CVE-2024-53262","published":"2024-11-25","fixed":"2.8.3","kev":false},{"cve":"CVE-2025-32388","published":"2025-04-15","fixed":"2.20.6","kev":false},{"cve":"CVE-2025-67647","published":"2026-01-15","fixed":"2.49.5","kev":false},{"cve":"CVE-2026-22803","published":"2026-01-15","fixed":"2.49.5","kev":false}],"package":"npm:@sveltejs/kit"}}