Vulnerabilities · 2024 · Svelte
CVE-2024-45047
Svelte vulnerability
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.
Affected products
Svelte. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Svelte runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/sveltejs/svelte/security/advisories/GHSA-8266-84wp-wv5c · Exploit
- github.com/sveltejs/svelte/commit/83e96e044deb5ecbae2af361ae9e31d3e1ac43a3
- nvd.nist.gov/vuln/detail/CVE-2024-45047
- github.com/advisories/GHSA-8266-84wp-wv5c
- nvd.nist.gov/vuln/detail/CVE-2024-45047
- cve.org/CVERecord?id=CVE-2024-45047
More vulnerabilities in Svelte products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.