Skip to main content
← All vulnerabilities
CVE-2026-27122GHSA-M56Q-VW4C-C2CP

Svelte SSR does not validate dynamic element tag names in `<svelte:element>`

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.51.5
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • sveltejs svelte

    fixed in 5.51.5

  • sveltenpm

    fixed in 5.51.5

References 1

GitHub · sveltejs/svelte