{"id":"GHSA-f3cj-j4f6-wq85","aliases":["GHSA-f3cj-j4f6-wq85"],"related":[],"kind":"vulnerability","state":"published","title":"Svelte: SSR XSS via Insecure Promise Serialization in hydratable","summary":"Contents of `hydratable` promises were not properly stringified, potentially leading to an XSS exploit. You are vulnerable if all of the following is true:\n- you are using `hydratable` (an experimental feature at the time of this report)\n- you are passing attacker-controlled input such that a synchronous value is hydrated, then a promise value, e.g. `hydratable('someKey', () => [synchronousValue, promiseValue])`","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"Contents of `hydratable` promises were not properly stringified, potentially leading to an XSS exploit. You are vulnerable if all of the following is true:\n- you are using `hydratable` (an experimental feature at the time of this report)\n- you are passing attacker-controlled input such that a synchronous value is hydrated, then a promise value, e.g. `hydratable('someKey', () => [synchronousValue, promiseValue])`","format":"markdown","source":"ghsa"}],"published":"2026-05-14T20:30:09.000Z","modified":"2026-05-14T20:49:54.154Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"5.46.0","status":"affected","fixed":"5.55.7"}],"ecosystem":"npm","package":"svelte","purl":"pkg:npm/svelte","source":"ghsa"}],"references":[{"url":"https://github.com/sveltejs/svelte/security/advisories/GHSA-f3cj-j4f6-wq85","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/sveltejs/svelte/commit/a16ebc67bbcf8f708360195687e1b2719463e1a4","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/sveltejs/svelte","tags":["package"],"sources":["ghsa"]},{"url":"http://github.com/sveltejs/svelte/releases/tag/svelte%405.55.7","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f3cj-j4f6-wq85","url":"https://github.com/advisories/GHSA-f3cj-j4f6-wq85","licence":"CC-BY-4.0","modified":"2026-05-14T20:49:54.154Z"}],"updatedAt":"2026-11-25T22:56:45.189Z"}