Vulnerabilities · 2025 · Svelte
CVE-2025-15265
Svelte vulnerability
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.
Affected products
Svelte. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Svelte runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- fluidattacks.com/advisories/lydian · Exploit
- github.com/sveltejs/svelte/security/advisories/GHSA-6738-r8g5-qwp3 · Third Party Advisory
- github.com/sveltejs/svelte/commit/ef81048e238844b729942441541d6dcfe6c8ccca
- github.com/sveltejs/svelte/releases/tag/svelte%405.46.4
- nvd.nist.gov/vuln/detail/CVE-2025-15265
- github.com/advisories/GHSA-6738-r8g5-qwp3
- nvd.nist.gov/vuln/detail/CVE-2025-15265
- cve.org/CVERecord?id=CVE-2025-15265
More vulnerabilities in Svelte products
CVE-2026-22803CVE-2026-22775CVE-2026-22774CVE-2025-67647CVE-2024-53262CVE-2024-53261CVE-2024-45047CVE-2024-23641All 13
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.