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

- Severity: Medium 5.1 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:L/VI:N/VA:N/SC:H/SI:H/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-02-19T15:18:42.000Z
- Modified: 2026-09-10T03:50:35.273Z
- Also known as: GHSA-m56q-vw4c-c2cp
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- sveltejs svelte: < 5.51.5
- svelte (npm): before 5.51.5
- svelte svelte: before 5.51.5

## Every score

- GitHub_M: CVSS:4.0 5.1 Medium `CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:L/VI:N/VA:N/SC:H/SI:H/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:L/VI:N/VA:N/SC:H/SI:H/SA:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/sveltejs/svelte/security/advisories/GHSA-m56q-vw4c-c2cp> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27122> (advisory)
- <https://github.com/sveltejs/svelte> (package)

## Sources

- CVE List: [CVE-2026-27122](https://www.cve.org/CVERecord?id=CVE-2026-27122), CVE Terms of Use, modified 2026-02-23
- GitHub Advisory Database: [GHSA-m56q-vw4c-c2cp](https://github.com/advisories/GHSA-m56q-vw4c-c2cp), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-27122](https://nvd.nist.gov/vuln/detail/CVE-2026-27122), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-27122 · Whole record: https://cve.day/CVE-2026-27122.json · Rebuilt by cve.day 2026-11-25T22:59:14.429Z
