Skip to content
OpenAdvisories
Medium GHSA-f3cj-j4f6-wq85

Svelte: SSR XSS via Insecure Promise Serialization in hydratable

Published May 14, 2026 · Updated May 14, 2026 · Assigned by GHSA

Description

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])`

Affected packages

EcosystemPackageAffectedFixedRecord
npm svelte >= 5.46.0, < 5.55.7 5.55.7 GHSA-f3cj-j4f6-wq85

References