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.
CVE-2022-25875 - Medium Severity Vulnerability
Vulnerable Library - svelte-3.45.0.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/svelte/package.json
Dependency Hierarchy: - :x: **svelte-3.45.0.tgz** (Vulnerable Library)
Found in HEAD commit: 395b56b03a73fb5861e3846a02ad9928e18944c4
Found in base branch: master
Vulnerability Details
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.
Publish Date: 2022-07-12
URL: CVE-2022-25875
CVSS 3 Score Details (5.4)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - Availability Impact: None
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25875
Release Date: 2022-07-12
Fix Resolution: svelte - 3.49.0
Step up your Open Source Security Game with Mend here