{"id":"CVE-2024-45047","published":"2024-08-30T16:55:39Z","modified":"2024-08-30T18:11:07Z","title":"Potential mXSS vulnerability due to improper HTML escaping in svelte","vendor":"sveltejs","product":"svelte","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0055,"percentile":0.3969,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/sveltejs/svelte/security/advisories/GHSA-8266-84wp-wv5c","tags":["x_refsource_CONFIRM"]}],"priority":{"score":11.7,"factors":[{"name":"EPSS percentile","points":7.94},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"sveltejs","affectedVersions":[{"vendor":"sveltejs","product":"svelte","versions":["< 4.2.19"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-08-30T18:09:31.713710Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"svelte","vulnerableRanges":["<4.2.19"],"patched":["4.2.19"],"from":["GHSA-8266-84wp-wv5c"],"provenance":"source"}],"summary":{"text":"The Svelte web framework (sveltejs/svelte) contains a mutation cross-site scripting (mXSS) flaw in its server-side rendering, where HTML is improperly escaped, so the DOM the browser builds can differ from what Svelte expected, and this is triggered by injecting malicious content into an attribute within a noscript tag. An attacker able to supply that content can reach the page over the network, but exploitation requires a user to interact with the page, and it affects only applications running a vulnerable Svelte release.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:05:46Z"},"euvd":{"id":"EUVD-2024-2530","exploited":false,"provenance":"source"}}