CVE-2025-15265
Description
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.
How to fix
- svelte svelte5.46.3 or later
- svelte5.46.4 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| svelte svelte | 5.46.0 ≤ v < 5.46.3 | 5.46.3 |
| sveltenpm | 5.46.0 ≤ v < 5.46.4 | 5.46.4 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.