Skip to main content
← All vulnerabilities
CVE-2026-42599GHSA-PR6F-5X2Q-RWFP

Cross-site scripting via spread attributes in Svelte SSR

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.55.7
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

Svelte is a performance oriented web framework. Prior to version 5.55.7, 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. Note that this vulnerability only triggers if the user's browser has JavaScript enabled but Svelte's hydration mechanism does not reach the vulnerable element before the event fires. This issue has been patched in version 5.55.7.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • sveltejs svelte

    fixed in 5.55.7

  • sveltenpm

    fixed in 5.55.7

References 2

GitHub · sveltejs/svelte