Svelte vulnerable to XSS during SSR with contenteditable `bind:innerText` and `bind:textContent`
cve-program · CVE-2026-27901
PublishedSvelte performance oriented web framework. Prior to version 5.53.5, 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. Version 5.53.5 fixes the issue.
Read the publisher's advisoryeuvd · EUVD-2026-8799
PublishedSvelte performance oriented web framework. Prior to version 5.53.5, 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. Version 5.53.5 fixes the issue.
Read the publisher's advisorynvd · CVE-2026-27901
PublishedSvelte performance oriented web framework. Prior to version 5.53.5, 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. Version 5.53.5 fixes the issue.
Read the publisher's advisoryosv · GHSA-phwv-c562-gvmh
PublishedThe 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.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-27901 · CVE overview and exploitation status
cve-program · CVE-2026-27901
- https://github.com/sveltejs/svelte/security/advisories/GHSA-phwv-c562-gvmh
- https://github.com/sveltejs/svelte/commit/0df5abcae223058ceb95491470372065fb87951d
- https://github.com/sveltejs/svelte/releases/tag/svelte%405.53.5
euvd · EUVD-2026-8799
- https://github.com/sveltejs/svelte/security/advisories/GHSA-phwv-c562-gvmh
- https://github.com/sveltejs/svelte/commit/0df5abcae223058ceb95491470372065fb87951d
- https://github.com/sveltejs/svelte/releases/tag/svelte%405.53.5
nvd · CVE-2026-27901
- 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
osv · GHSA-phwv-c562-gvmh
- https://github.com/sveltejs/svelte/security/advisories/GHSA-phwv-c562-gvmh
- https://nvd.nist.gov/vuln/detail/CVE-2026-27901
- https://github.com/sveltejs/svelte/commit/0df5abcae223058ceb95491470372065fb87951d
- https://github.com/sveltejs/svelte
- https://github.com/sveltejs/svelte/releases/tag/[email protected]
Related changes
Linked by CVE identifierNo related changes are available here.