CVE-2022-25875: Cross-site Scripting (XSS)
Vulnerability summary
CVE-2022-25875 is a medium (CVSS 6.1) vulnerability in svelte. EPSS estimates a 1.44% chance of exploitation in the next 30 days, higher than 73.2% of scored vulnerabilities. 2 public exploits are recorded.
Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 12-07-2022PublishedVulnerability first disclosed.
- 17-09-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- CVE.orgCNA5.4MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:PDiffers
- OSV · NpmEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
1.44%
Chance of exploitation in the next 30 days
Percentile
73%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.44% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
2 foundSvelte
Maturity: poc
Exploit Reference (snyk.io)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Npm1 product
- svelte< 3.49.0
Svelte1 product
- svelte< 3.49.0
2 vendors · 2 products
References
6 links- github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907X Refsource MISCWEBExploitPatchThird Party Advisory
- github.com/sveltejs/sveltePACKAGE