
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability CVE-2022-25875 affects the Svelte package versions prior to 3.49.0. This Cross-site Scripting (XSS) vulnerability was discovered due to improper input sanitization and improper escape of attributes when using objects during Server-Side Rendering (SSR). The vulnerability was disclosed on June 17, 2022, and published on July 11, 2022 (Snyk).
The vulnerability stems from improper input sanitization and escape of attributes when using objects during Server-Side Rendering (SSR). The issue specifically occurs when handling objects with a custom toString() function. The vulnerability has a CVSS v3.1 base score of 5.4 (medium severity), with attack vector being Network, attack complexity Low, requiring User Interaction, and having Low impact on both Confidentiality and Integrity (Snyk).
When successfully exploited, this vulnerability could allow attackers to execute cross-site scripting attacks through objects with custom toString() functions. This could potentially lead to cookie theft, session hijacking, exposure of sensitive information, or delivery of malware. The vulnerability affects the confidentiality and integrity of the application with a low impact level (Snyk).
The recommended mitigation is to upgrade the Svelte package to version 3.49.0 or higher. The fix was implemented through a patch that hardened attribute escaping during SSR, as evidenced by the commit f8605d6 (GitHub).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."