CVE-2026-27122
Description
svelte performance oriented web framework. Prior to 5.51.5, when using <svelte:element this={tag}> in server-side rendering, the provided tag name is not validated or sanitized before being emitted into the HTML output. If the tag string contains unexpected characters, it can result in HTML injection in the SSR output. Client-side rendering is not affected. This vulnerability is fixed in 5.51.5.
How to fix
- svelte svelte5.51.5 or later
- svelte5.51.5 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| svelte svelte | v < 5.51.5 | 5.51.5 |
| sveltenpm | v < 5.51.5 | 5.51.5 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.