Medium severity · published Aug 30, 2024
CVE-2024-45047
svelte performance oriented web framework
6.1
CVSS
0.4%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 30% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
SV
Svelte · Svelte
before 4.2.19 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-45047
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-45047
Exploit
https://github.com/sveltejs/svelte/security/advisories/GHSA-8266-84wp-wv5c
More from Svelte
7.8
CVE-2021-29261
The unofficial Svelte extension before 104.8.0 for Visual Studio Code allows attackers to execute arbitrary code via a crafted workspace configuration
7.5
CVE-2026-42567
Svelte: ReDoS in `<svelte:element>` Tag Validation
6.8
CVE-2026-27125
Svelte SSR attribute spreading includes inherited properties from prototype chain
6.1
CVE-2026-42599
Cross-site scripting via spread attributes in Svelte SSR
6.1
CVE-2026-42573
Svelte: XSS via DOM Clobbering of Internal Framework State
