CVE-2022-25875
MEDIUMsvelte < 3.49.0 - Cross-Site Scripting via Custom toString Function in SSR
Title source: llmDescription
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.
References (3)
Core 3
Core References
Exploit, Patch, Third Party Advisory x_refsource_misc
https://snyk.io/vuln/SNYK-JS-SVELTE-2931080
Broken Link x_refsource_misc
https://github.com/sveltejs/svelte/pull/7530%23issuecomment-1158575990
Exploit, Patch, Third Party Advisory x_refsource_misc
https://github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907
Scores
CVSS v3
5.4
EPSS
0.0073
EPSS Percentile
72.8%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Details
CWE
CWE-79
Status
published
Products (2)
npm/svelte
0 - 3.49.0npm
svelte/svelte
< 3.49.0
Published
Jul 12, 2022
Tracked Since
Feb 18, 2026