CVEvulnerability
CVE-2022-25875
6.1 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2022-07-12
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 5.4 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- CVSS 3.1 ([email protected])
- 6.1 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CVSS 2.0 ([email protected])
- 4.3 MEDIUM — AV:N/AC:M/Au:N/C:N/I:P/A:N
- Weaknesses
- CWE-79
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.
Affected configurations
• svelte svelte (< 3.49.0)
Related
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907 Exploit, Patch, Third Party Advisory
- https://github.com/sveltejs/svelte/pull/7530%23issuecomment-1158575990 Broken Link
- https://snyk.io/vuln/SNYK-JS-SVELTE-2931080 Exploit, Patch, Third Party Advisory
- https://github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907 Exploit, Patch, Third Party Advisory
- https://github.com/sveltejs/svelte/pull/7530%23issuecomment-1158575990 Broken Link
- https://snyk.io/vuln/SNYK-JS-SVELTE-2931080 Exploit, Patch, Third Party Advisory