Cross-Site Scripting in Svelte Framework Affects User-Driven Attributes
CVE-2026-27121
5.1MEDIUM
What is CVE-2026-27121?
The Svelte framework, a performance-oriented web development tool, is exposed to a cross-site scripting (XSS) vulnerability when utilizing server-side rendering. This issue arises when developers use spread syntax to render attributes from untrusted sources. If element attributes include user-controlled data, an attacker may inject malicious event handlers into the rendered HTML output. Consequently, these event handlers can execute inside the browsers of unsuspecting users, posing a significant security risk. This vulnerability has been addressed in version 5.51.5.
Affected Version(s)
svelte < 5.51.5
