Vulnerability · Published Jul 12, 2022 · Assigned by snyk
CVE-2022-25875Cross-site Scripting (XSS)
Medium 5.4
In plain English
A medium-severity security flaw in svelte. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 73% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)1.4%top 26.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | svelte | 3.49.0 | GHSA-wv8q-r932-8hc7 |
Affected products (as reported)
References
- https://snyk.io/vuln/SNYK-JS-SVELTE-2931080 x_refsource_MISC
- https://github.com/sveltejs/svelte/pull/7530%23issuecomment-1158575990 x_refsource_MISC
- https://github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907 x_refsource_MISC