Advisory

GHSA-f3cj-j4f6-wq85

Also known as: None

Summary

Svelte: SSR XSS via Insecure Promise Serialization in hydratable

Details

Contents of hydratable promises were not properly stringified, potentially leading to an XSS exploit. You are vulnerable if all of the following is true:

  • you are using hydratable (an experimental feature at the time of this report)
  • you are passing attacker-controlled input such that a synchronous value is hydrated, then a promise value, e.g. hydratable('someKey', () => [synchronousValue, promiseValue])

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-05-14 20:30 UTC
Modified
2026-05-14 20:49 UTC

Affected packages and fixes

svelte

npm · All systems

Affected

  • introduced 5.46.0, fixed 5.55.7 (semver)

Fixed versions

5.55.7

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