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

EcosystemPackageFixed inAdvisory
npmsvelte3.49.0GHSA-wv8q-r932-8hc7

Affected products (as reported)

VendorProductVersions
n/a svelte unspecified – before 3.49.0

References