CVE-2024-53262: Unescaped error message included on error page in SvelteKit
Vulnerability summary
CVE-2024-53262 is a medium (CVSS 5.4) vulnerability in svelte sveltekit. EPSS estimates a 0.51% chance of exploitation in the next 30 days, higher than 43.7% of scored vulnerabilities.
Not severe (CVSS 2, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 25-11-2024PublishedVulnerability first disclosed.
- 25-11-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
5 scores · 3 sources · 2 versions- OSV · NpmEcosystem advisory · calculated2.3LowCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:PDiffers
- NVDNIST2.0LowCVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · NpmEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:NDiffers
EPSS trend
Probability
0.51%
Chance of exploitation in the next 30 days
Percentile
44%
Versus all other CVEs
30-day change
Increase +0.03 pp
From 0.48% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
@sveltejs1 product
- kit< 2.8.3
Svelte1 product
- sveltekit< 2.8.3
Sveltejs1 product
- kit< 2.8.3
3 vendors · 3 products
References
7 links- github.com/sveltejs/kit/security/advisories/GHSA-mh2x-fcqh-fmqvX Refsource CONFIRMWEBThird Party Advisory
- github.com/sveltejs/kitPACKAGE