CVE-2022-25875
Svelte vulnerable to XSS when using objects during server-side rendering
6.1
MEDIUM
CVSS 3.1
EPSS 0.73%
Description
The package svelte before 3.49.0 is 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.
How to fix CVE-2022-25875
To remediate CVE-2022-25875, upgrade the affected package to a fixed version below.
- —upgrade to 3.49.0 or later
Is CVE-2022-25875 being exploited?
Low — EPSS is 0.7%, meaning exploitation activity has not been observed at scale.
Affected packages (1)
- from 0, < 3.49.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |