Description
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.
Metrics
CVSS 3.1 6.1/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| n/a | svelte | >= unspecified, < 3.49.0 |
References
- https://github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907Exploit, Patch, Third Party Advisory
- https://github.com/sveltejs/svelte/pull/7530%23issuecomment-1158575990Broken Link
- https://snyk.io/vuln/SNYK-JS-SVELTE-2931080Exploit, Patch, Third Party Advisory
- https://github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907Exploit, Patch, Third Party Advisory
- https://github.com/sveltejs/svelte/pull/7530%23issuecomment-1158575990Broken Link
- https://snyk.io/vuln/SNYK-JS-SVELTE-2931080Exploit, Patch, Third Party Advisory
Timeline
- Published
- Jul 12, 2022
- Last modified
- Jun 17, 2026
- NVD status
- Modified