CVE-2026-27122
JSON

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 packageVersionsReported by
sveltejs svelte< 5.51.5CVE List
svelte (npm)before 5.51.5GitHub Advisory Database
svelte sveltebefore 5.51.5NVD

All scores

GitHub_M5.1medium CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:L/VI:N/VA:N/SC:H/SI:H/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:L/VI:N/VA:N/SC:H/SI:H/SA:N
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

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

SourceRecordLicence
CVE ListCVE-2026-27122 changed 2026-02-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-m56q-vw4c-c2cp changed 2026-09-10CC-BY-4.0
NVDCVE-2026-27122 changed 2026-06-17Public domain