CVE-2022-25875: Svelte - Stored XSS
- Cve: CVE-2022-25875
- Name: Svelte - Stored XSS
- 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.
- Impact: Attackers can execute malicious scripts in the context of other users, leading to data theft or session hijacking.
- Remediation: Update to version 3.49.0 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec, information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.01441
- Epss percentile: 0.739
- Assignee: [email protected]
- Published at: 2022-07-12T19:15:08Z
- Age in days: 1596
- Modified at: 2026-06-17T04:34:25Z
- Patch available: yes
- Public exploits total: 2
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-25875
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation |
Hackerone
- Reports: 2
- Rank: 3806
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907 | nvd | 2022-07-12 |
| https://snyk.io/vuln/SNYK-JS-SVELTE-2931080 | nvd | 2022-07-12 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907 | nvd | Exploit, Patch, Third Party Advisory |
| https://snyk.io/vuln/SNYK-JS-SVELTE-2931080 | nvd | Exploit, Patch, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| svelte:svelte | < 3.49.0 | no | nvd | /v1/products/svelte/svelte |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| sveltejs/svelte | commit, fix, package, pull | yes | /v1/repositories/sveltejs/svelte |
Index
- Repositories: 1
- Repositories high signal: 1
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 2
- Public exploit first date: 2022-07-12
- Remote: yes
- Hackerone reports: 2
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, exposed hosts