CVE-2026-27122

Svelte SSR does not validate dynamic element tag names in `<svelte:element>`

MEDIUM
5.4
CVSS Score
Published: February 20, 2026 at 10:28 PM UTC
Updated: June 17, 2026 at 10:26 AM UTC
2 products affected across 2 vendorsSvelteSvelte

Using svelte by sveltejs?

Get instant alerts when new vulnerabilities affect svelte - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.4
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 5.51.5
v < 5.51.5
Affected range stops below 5.51.5, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (1)

x_refsource_CONFIRMVendor Advisory
Source: cverecord
https://github.com/sveltejs/svelte/security/advisories/GHSA-m56q-vw4c-c2cp

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-79

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card