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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/sveltejs/svelte/security/advisories/GHSA-m56q-vw4c-c2cp vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2441520 issue-tracking
- www.cve.org
- github.com product