GHSA-f3cj-j4f6-wq85
MEDIUMSvelte: SSR XSS via Insecure Promise Serialization in hydratable
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])
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | svelte | >= 5.46.0, < 5.55.7 | 5.55.7 |
References
- https://github.com/sveltejs/svelte/security/advisories/GHSA-f3cj-j4f6-wq85 · WEB
- https://github.com/sveltejs/svelte/commit/a16ebc67bbcf8f708360195687e1b2719463e1a4 · WEB
- https://github.com/sveltejs/svelte · PACKAGE
- http://github.com/sveltejs/svelte/releases/tag/svelte%405.55.7 · WEB
History
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 14 May 2026)