HTML Injection Vulnerability in Svelte Framework by Svelte
CVE-2026-27122
5.1MEDIUM
What is CVE-2026-27122?
The Svelte framework, a performance-oriented web framework, has a vulnerability in versions prior to 5.51.5. When utilizing the <svelte:element this={tag}> feature in server-side rendering, the framework fails to validate or sanitize the provided tag name. This oversight can lead to HTML injection if the tag string includes unexpected characters, compromising the integrity of the emitted HTML output. It's important to note that this vulnerability does not affect client-side rendering. Users are urged to update to version 5.51.5 or later to mitigate this risk. For more information, visit the official advisory at the Svelte GitHub page.
Affected Version(s)
svelte < 5.51.5
