Vulnerabilities · 2022 · Svelte
CVE-2022-25875
Svelte vulnerability
The package svelte before 3.49.0 are vulnerable to Cross-site Scripting (XSS) due to improper input sanitization and to improper escape of attributes when using objects during SSR (Server-Side Rendering). Exploiting this vulnerability is possible via objects with a custom toString() function.
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
More vulnerabilities in Svelte products
CVE-2026-22803CVE-2026-22775CVE-2026-22774CVE-2025-67647CVE-2025-15265CVE-2024-53262CVE-2024-53261CVE-2024-45047All 13
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.