CVE-2026-27122
MEDIUM 5.1CVSS 4.0Svelte SSR does not validate dynamic element tag names in `<svelte:element>`
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.
- Published
- 20 Feb 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-m56q-vw4c-c2cp
- Sources
- NVDJSONOSV GHSA-m56q-vw4c-c2cpJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 5.1 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | svelte | sveltecpe:2.3:a:svelte:svelte:*:*:*:*:*:node.js:*:* |
< 5.51.5 | 5.51.5 |
| OSV | npm | svelte | < 5.51.5 | 5.51.5 |
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
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 20 Feb 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 19 Feb 2026)