All reports
Medium

Svelte vulnerable to XSS when using objects during server-side rendering

Affected versions

Affected versions
< 3.49.0
Fixed version
3.49.0

Exploitation

CVE-2022-25875

Probability of exploitation in the next 30 days: 1.44%

FIRST EPSS · 2026-11-23

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.

Links