Advisory

GHSA-wv8q-r932-8hc7

Also known as: CVE-2022-25875, SNYK-JS-SVELTE-2931080

Summary

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

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-07-13 00:00 UTC
Modified
2026-07-08 06:49 UTC

Affected packages and fixes

svelte

npm · All systems

Affected

  • introduced 0, fixed 3.49.0 (semver)

Fixed versions

3.49.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences