Skip to content

CVE-2026-27122 Svelte SSR does not validate dynamic element tag names in `<svelte:element>`

MediumCVSS 5.1 EPSS 0.22%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
Red Hat

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.

Upgrade path

4 packages: 2 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
redhat/rhdesktop/rh-podman-desktop-ext-bootc-rhel10(Red Hat podman_desktop 0) All versions No fix listed No fix yet
npm svelte(npm) < 5.51.5; <= 5.51.4 5.51.5 Fixed
svelte < 5.51.5 5.51.5 Fixed
sveltejs svelte = < 5.51.5 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
sveltejs svelte = < 5.51.5 No fix listed
npm svelte(npm) <= 5.51.4 No fix listed
redhat/rhdesktop/rh-podman-desktop-ext-bootc-rhel10(Red Hat:podman_desktop:0) All versions No fix listed
svelte < 5.51.5 5.51.5
npm svelte(npm) < 5.51.5 5.51.5

References