XSS in Svelte
CVE-2025-15265
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.003, 28.6th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Svelte — versions 5.46.0
Weakness classification (CWE)
References
- fluidattacks.com/advisories/lydian (Exploit, Third Party Advisory, third-party-advisory)
- github.com/sveltejs/svelte/security/advisories/GHSA-6738-r8g5-qwp3 (vendor-advisory, Third Party Advisory)