CVE-2022-25875Cross-site Scripting (XSS)
- 5.4MediumCVSS base score
- 1.4%Exploitation in 30 daysEPSS · top 26% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By snyk
- 5 months later
· 5 months later
Published
- 2 years later
· 2 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
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 26% of all CVEs (14 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.4.
Affected products
svelte
- affected unspecified – < 3.49.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
References
References3
- 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)
- EUVD EUVD-2022-6441 (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://cveledger.app/cve/CVE-2022-25875)Record last updated .