Vulnerabilities/

Svelte SSR vulnerable to cross-site scripting via spread attributes

Severity:
Medium

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:

References

Related Issues

Tags:
npm
svelte
Anything's wrong? Let us know Last updated on May 14, 2026