CVE-2022-25875
MEDIUM6.1EPSS 0.73%Svelte vulnerable to XSS when using objects during server-side rendering
Published: 7/13/2022Modified: 3/13/2026
Description
The package svelte before 3.49.0 is 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 packages (1)
- npm/sveltefrom 0, < 3.49.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |