GHSA-f3cj-j4f6-wq85
GHSA-f3cj-j4f6-wq85 · Svelte: SSR XSS via Insecure Promise Serialization in hydratable
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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])`
CVSS 5.3 · Medium · Fix available
- Published
- Updated
Stack: node
Affected products and versions
svelte npm
- Affected ranges
- SEMVER: ≥ 5.46.0, < 5.55.7
Update to 5.55.7
Original sources
- https://github.com/sveltejs/svelte/security/advisories/GHSA-f3cj-j4f6-wq85
- https://github.com/sveltejs/svelte/commit/a16ebc67bbcf8f708360195687e1b2719463e1a4
- https://github.com/sveltejs/svelte
- http://github.com/sveltejs/svelte/releases/tag/svelte%405.55.7
- https://osv.dev/vulnerability/GHSA-f3cj-j4f6-wq85