CVE-2026-27121Svelte
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. Versions of svelte prior to 5.51.5 are vulnerable to cross-site scripting (XSS) during server-side rendering. When using spread syntax to render attributes from untrusted data, event handler properties are included in the rendered HTML output. If an application spreads user-controlled or external data as element attributes, an attacker can inject malicious event handlers that execute in victims' browsers. 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-f7gr-6p89-r883). 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