MEDIUM
GHSA-phwv-c562-gvmh
Svelte vulnerable to XSS during SSR with contenteditable `bind:innerText` and `bind:textContent`
Quick fix
GHSA-phwv-c562-gvmh — svelte: upgrade to the fixed version with the command below.
npm install svelte@5.53.5Details
The contents of `bind:innerText` and `bind:textContent` on `contenteditable` elements were not properly escaped. This could enable HTML injection and Cross-site Scripting (XSS) if rendering untrusted data as the binding's initial value on the server.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://github.com/sveltejs/svelte/security/advisories/GHSA-phwv-c562-gvmh[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2026-27901[ADVISORY]
- https://github.com/sveltejs/svelte/commit/0df5abcae223058ceb95491470372065fb87951d[WEB]
- https://github.com/sveltejs/svelte[PACKAGE]
- https://github.com/sveltejs/svelte/releases/tag/svelte@5.53.5[WEB]