XSS in Svelte
CVE-2022-25875
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.014 (72.3th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 72nd percentile — 72.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.014 · newest: 0.014 · change: +0.000
Affected products
- Svelte
- Svelte — versions unspecified
Weakness classification (CWE)
References
- snyk.io/vuln/SNYK-JS-SVELTE-2931080 (Exploit, Patch, Third Party Advisory)
- github.com/sveltejs/svelte/pull/7530#issuecomment-1158575990 (Broken Link)
- github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907 (Exploit, Patch, Third Party Advisory)
Frequently asked questions
- What is CVE-2022-25875?
- CVE-2022-25875 is a medium-severity vulnerability in Svelte, classified under Cross-site Scripting. CVSS score: 5.4/10. Published 2022-07-12.
- How severe is CVE-2022-25875?
- Medium severity. CVSS v3 base score is 5.4 out of 10.