Medium severity · published Jul 12, 2022
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…
6.1
CVSS
1.4%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)1.4% · higher than 73% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
SV
Svelte · Svelte
before 3.49.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-25875
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-25875
Exploit
https://github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907
Broken Link
https://github.com/sveltejs/svelte/pull/7530%23issuecomment-1158575990
Exploit
https://snyk.io/vuln/SNYK-JS-SVELTE-2931080
More from Svelte
7.8
CVE-2021-29261
The unofficial Svelte extension before 104.8.0 for Visual Studio Code allows attackers to execute arbitrary code via a crafted workspace configuration
7.5
CVE-2026-42567
Svelte: ReDoS in `<svelte:element>` Tag Validation
6.8
CVE-2026-27125
Svelte SSR attribute spreading includes inherited properties from prototype chain
6.1
CVE-2026-42599
Cross-site scripting via spread attributes in Svelte SSR
6.1
CVE-2026-42573
Svelte: XSS via DOM Clobbering of Internal Framework State
