Advisory

GHSA-f7gr-6p89-r883

Also known as: CVE-2026-27121

Summary

Svelte affected by cross-site scripting via spread attributes in Svelte SSR

Details

Versions of svelte prior to 5.51.5 are vulnerable to cross-site scripting (XSS) during server-side rendering. When using spread syntax to render attributes from untrusted data, event handler properties are included in the rendered HTML output. If an application spreads user-controlled or external data as element attributes, an attacker can inject malicious event handlers that execute in victims' browsers.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-02-19 15:18 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

svelte

npm · All systems

Affected

  • introduced 0, fixed 5.51.5 (semver)

Fixed versions

5.51.5

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