CVE-2026-27122Svelte
Medium 5.1
Follow: this CVE · Svelte · Svelte We alert you by email or Slack (account required).
- Priority
- 31
- CVSS 4.0
- 5.1
- EPSS
- —
- Auth required
- Yes
- Published
- Feb 20, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- 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/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
What happens
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.
What to do
- Apply the vendor's security update for Svelte.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | svelte |
< 5.51.5 |
5.51.5 |
npm install svelte@5.51.5 |
Per OSV / GitHub Advisories (GHSA-m56q-vw4c-c2cp). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| svelte | svelte | < 5.51.5 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Vendor Advisory