Description
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.
Recommendation
Update the svelte package to the latest compatible version. Followings are version details:
- Affected version(s): <= 5.55.6
- Patched version(s): 5.55.7
References
Could your website be exposed too?
SmartScanner can check your website for Svelte SSR vulnerable to cross-site scripting via spread attributes and gives you actionable findings to investigate.
Start a free scanRelated Issues
- Svelte affected by cross-site scripting via spread attributes in Svelte SSR - CVE-2026-27121
- CleverTap Web SDK is vulnerable to DOM-based Cross-Site Scripting (XSS) via window.postMessage - CVE-2026-26862
- ep_etherpad-lite: Cache-poisoning Cross-site Scripting and Open Redirect via x-proxy-path Header - CVE-2026-55087
- TinyMCE Cross-Site Scripting (XSS) vulnerability using through data-mce- prefixed src, href, style attributes - CVE-2026-47759


