CVE-2022-25875

medium

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.

References

https://snyk.io/vuln/SNYK-JS-SVELTE-2931080

https://github.com/sveltejs/svelte/pull/7530%23issuecomment-1158575990

https://github.com/sveltejs/svelte/commit/f8605d6acbf66976da9b4547f76e90e163899907

Details

Source: Mitre, NVD

Published: 2022-07-12

Updated: 2026-06-17

Risk Information

CVSS v2

Base Score: 4.3

Vector: CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N

Severity: Medium

CVSS v3

Base Score: 6.1

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Severity: Medium

EPSS

EPSS: 0.00245