Moderate severityNVD Advisory· Published Jul 12, 2022· Updated Sep 17, 2024
Cross-site Scripting (XSS)
CVE-2022-25875
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
sveltenpm | < 3.49.0 | 3.49.0 |
Affected products
2Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-wv8q-r932-8hc7ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-25875ghsaADVISORY
- github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907ghsax_refsource_MISCWEB
- github.com/sveltejs/svelte/pull/7530ghsaWEB
- github.com/sveltejs/svelte/pull/7530%23issuecomment-1158575990mitrex_refsource_MISC
- snyk.io/vuln/SNYK-JS-SVELTE-2931080ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.