Skip to main content
← All vulnerabilities
CVE-2025-15265GHSA-6738-R8G5-QWP3

Svelte 5.46.0 - Hydratable Key Script-Breakout XSS (SSR)

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

Summary

An SSR XSS exists in async hydration when attacker‑controlled keys are passed to hydratable. The key is embedded inside a <script> block without HTML‑safe escaping, allowing </script> to terminate the script and inject arbitrary JavaScript. This enables remote script execution in users' browsers, with potential for session theft and account compromise. This issue affects Svelte: from 5.46.0 before 5.46.3.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • svelte

    From 5.46.0 · fixed in 5.46.3

  • sveltenpm

    From 5.46.0 · fixed in 5.46.4

References 2

fluidattacks.com

GitHub · sveltejs/svelte