Back
CVE-2022-25875
Cross-site Scripting (XSS)
Medium5.4EPSS 1.4%
- Published
- Updated
- Reserved
- Assigned by
- snyk
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| snykCNA (assigner) | 3.1 | Medium5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P |
| NVDNVD · Modified | 3.1 | Medium6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 1.4% · top 27% of all CVEs (7 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.4.
Weakness
- Cross-site Scripting (XSS)
- CWE-79 (opens in a new tab)All about CWE-79 and its CVEs
Affected products
svelte
- affected unspecified – < 3.49.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
References (3)
- https://snyk.io/vuln/SNYK-JS-SVELTE-2931080 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/sveltejs/svelte/pull/7530%23issuecomment-1158575990 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907 (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-wv8q-r932-8hc7 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-25875)Record last updated .