CVE 5.1 MEDIUM

Svelte affected by cross-site scripting via spread attributes in Svelte SSR_CVE-2026-27121

5.1 / 10
MEDIUM
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

Description

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.

Basic Information

ID CVE-2026-27121
Source GitHub_M
Published Feb 20, 2026 at 22:27

Affected Product

Vendor sveltejs
Product svelte
Version < 5.51.5
Affected Versions sveltejs svelte < 5.51.5

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.