Skip to content

CVE-2022-25875 Cross-site Scripting (XSS)

MediumCVSS 6.1 EPSS 1.4%
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
npm svelte(npm) < 3.49.0 3.49.0 Fixed
svelte < 3.49.0 3.49.0 Fixed

Affected products

ProductAffected versionsFixed in
npm svelte(npm) < 3.49.0 3.49.0
svelte < 3.49.0 3.49.0

References