XSS in Svelte

CVE-2022-25875

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.

Vulnerability class: XSS (Cross-Site Scripting)

EPSS: 0.013 (67.7th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N.

Affected products

  • Svelte
  • N/a Svelte — versions unspecified

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2022-25875?
CVE-2022-25875 is a medium-severity vulnerability in Svelte, classified under Cross-site Scripting. CVSS score: 5.4/10. Published 2022-07-12.
How severe is CVE-2022-25875?
Medium severity. CVSS v3 base score is 5.4 out of 10.