{"id":"CVE-2025-15265","aliases":["GHSA-6738-r8g5-qwp3"],"url":"https://o3.security/vulnerability/CVE-2025-15265","summary":"Svelte 5.46.0  - Hydratable Key Script-Breakout XSS (SSR)","details":"## Summary\n\nAn XSS vulnerability exists in Svelte 5.46.0-2 resulting from improper escaping of `hydratable` keys. If these keys incorporate untrusted user input, arbitrary JavaScript can be injected into server-rendered HTML.\n\n## Details\n\nWhen using the [`hydratable`](https://svelte.dev/docs/svelte/hydratable) function, the first argument is used as a key to uniquely identify the data, such that the value is not regenerated in the browser.\n\nThis key is embedded into a `<script>` block in the server-rendered `<head>` without escaping unsafe characters. A malicious key can break out of the script context and inject arbitrary JavaScript into the HTML response.\n\n## Impact\n\nThis is a cross-site scripting vulnerability affecting applications that have the `experimental.async` flag enabled and use `hydratable` with keys incorporating untrusted user input. \n\n- **Impact**: Arbitrary JS execution in the client’s browser.\n- **Exploitability**: Remote, single-request if key is attacker-controlled.\n- **Typical Outcomes**:\n  - Session/token theft\n  - DOM defacement\n  - CSRF bypass via injected JS\n  - Account takeover depending on cookie/session strategy\n\nAffected applications should upgrade to a patched version immediately.","published":"2026-01-15T19:59:41.683Z","modified":"2026-08-12T03:51:40.354810875Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"svelte","fixedVersion":"5.46.4"}],"fix":{"url":"https://github.com/sveltejs/svelte/commit/ef81048e238844b729942441541d6dcfe6c8ccca","label":"sveltejs/svelte@ef81048"},"references":[{"type":"WEB","url":"https://registry.npmjs.org"},{"type":"ADVISORY","url":"https://fluidattacks.com/advisories/lydian"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/15xxx/CVE-2025-15265.json"},{"type":"ADVISORY","url":"https://github.com/sveltejs/svelte/security/advisories/GHSA-6738-r8g5-qwp3"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-15265"},{"type":"WEB","url":"https://github.com/sveltejs/svelte/commit/ef81048e238844b729942441541d6dcfe6c8ccca"},{"type":"PACKAGE","url":"https://github.com/sveltejs/svelte"},{"type":"WEB","url":"https://github.com/sveltejs/svelte/releases/tag/svelte%405.46.4"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:40.354810875Z"}}