# GHSA-f3cj-j4f6-wq85: Svelte: SSR XSS via Insecure Promise Serialization in hydratable

- Severity: Medium (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-05-14T20:30:09.000Z
- Modified: 2026-05-14T20:49:54.154Z
- Weaknesses: CWE-79

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

(As written by GitHub Advisory Database.)

## Affected

- svelte (npm): from 5.46.0 before 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)

## Sources

- GitHub Advisory Database: [GHSA-f3cj-j4f6-wq85](https://github.com/advisories/GHSA-f3cj-j4f6-wq85), CC-BY-4.0, modified 2026-05-14

---

Page: https://cve.day/GHSA-f3cj-j4f6-wq85 · Whole record: https://cve.day/GHSA-f3cj-j4f6-wq85.json · Rebuilt by cve.day 2026-11-25T22:56:45.189Z
