Advisory

GHSA-m56q-vw4c-c2cp

Also known as: CVE-2026-27122

Summary

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

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-02-19 15:18 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

svelte

npm · All systems

Affected

  • introduced 0, fixed 5.51.5 (semver)

Fixed versions

5.51.5

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences