5.1medium
Svelte SSR does not validate dynamic element tag names in `<svelte:element>`
- Severity
- 5.1medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.22% (higher than 12% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-m56q-vw4c-c2cp
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| sveltejs svelte | < 5.51.5 | CVE List |
| svelte (npm) | before 5.51.5 | GitHub Advisory Database |
| svelte svelte | before 5.51.5 | NVD |
All scores
| GitHub_M | 5.1medium 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 |
| GitHub | medium 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 | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
framework web svelte orientado al rendimiento. Antes de 5.51.5, al usar en la renderización del lado del servidor, el nombre de etiqueta proporcionado no se valida ni se sanea antes de ser emitido en la salida HTML. Si la cadena de etiqueta contiene caracteres inesperados, puede resultar en inyección HTML en la salida SSR. La renderización del lado del cliente no se ve afectada. Esta vulnerabilidad se ha corregido en 5.51.5.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-27122 changed 2026-02-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m56q-vw4c-c2cp changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-27122 changed 2026-06-17 | Public domain |