XSS in Svelte
CVE-2024-45047
svelte performance oriented web framework. A potential mXSS vulnerability exists in Svelte for versions up to but not including 4.2.19. Svelte improperly escapes HTML on server-side rendering. The assumption is that attributes will always stay as such, but in some situation the final DOM tree rendered on browsers is different from what Svelte expects on server-side rendering. This may be leveraged to perform XSS attacks, and a type of the XSS is known as mXSS (mutation XSS). More specifically, this can occur when injecting malicious content into an attribute within a `noscript` tag. This issue has been addressed in release version 4.2.19. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.004 (27.8th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 28th percentile — 27.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: 0.000
Affected products
- Svelte
- Sveltejs Svelte — versions < 4.2.19
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/sveltejs/svelte/security/advisories/GHSA-8266-84wp-wv5c (Exploit, Third Party Advisory)
Frequently asked questions
- What is CVE-2024-45047?
- CVE-2024-45047 is a medium-severity vulnerability in Svelte, classified under Cross-site Scripting. CVSS score: 5.4/10. Published 2024-08-30.
- How severe is CVE-2024-45047?
- Medium severity. CVSS v3 base score is 5.4 out of 10.
- Is CVE-2024-45047 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.