medium5.3
CVE-2026-27901
Svelte vulnerable to XSS during SSR with contenteditable `bind:innerText` and `bind:textContent`
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | svelte | <= 5.53.4 | 5.53.5 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Svelte | Svelte | before 5.53.5 Version 5.53.5 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/sveltejs/svelte/commit/0df5abcae223058ceb95491470372065fb87951d
- https://github.com/sveltejs/svelte/releases/tag/svelte%405.53.5
- https://github.com/sveltejs/svelte/security/advisories/GHSA-phwv-c562-gvmh
- https://github.com/advisories/GHSA-phwv-c562-gvmh
- https://nvd.nist.gov/vuln/detail/CVE-2026-27901
- https://github.com/sveltejs/svelte/releases/tag/svelte@5.53.5