{"id":"CVE-2026-27122","published":"2026-02-20T22:28:37Z","modified":"2026-02-23T19:23:03Z","title":"Svelte SSR does not validate dynamic element tag names in `<svelte:element>`","vendor":"sveltejs","product":"svelte","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00271,"percentile":0.12164,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/sveltejs/svelte/security/advisories/GHSA-m56q-vw4c-c2cp","tags":["x_refsource_CONFIRM"]}],"priority":{"score":6.0,"factors":[{"name":"EPSS percentile","points":2.43},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"sveltejs","affectedVersions":[{"vendor":"sveltejs","product":"svelte","versions":["< 5.51.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-23T19:22:44.293082Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"svelte","vulnerableRanges":["<5.51.5"],"patched":["5.51.5"],"from":["GHSA-m56q-vw4c-c2cp"],"provenance":"source"}],"summary":{"text":"The Svelte web framework fails to validate or sanitise the tag name passed to <svelte:element this={tag}> during server-side rendering, so the unchecked string is emitted directly into the HTML output; client-side rendering is not affected. An attacker who can influence the tag value can inject arbitrary HTML into the server-rendered page, but exploitation requires that the attacker already holds high-privilege access and that the injected value reaches the tag binding, with the attack complexity noted as high.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:16Z"},"euvd":{"id":"EUVD-2026-7538","exploited":false,"provenance":"source"}}