NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

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

mediumCVSS 4.0 5.1GHSA-m56q-vw4c-c2cp

When using 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.

Published Feb 19, 2026 · Updated Feb 23, 2026

Affected packages

svelte

Ecosystem
npm
Affected
<= 5.51.4
Fixed in
5.51.5
Check
npm ls svelte

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to elliott-with-the-longest-name-on-github.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries