ADVISORIES

GitHub Advisory Database

GHSA-phwv-c562-gvmh

Svelte vulnerable to XSS during SSR with contenteditable `bind:innerText` and `bind:textContent`

Moderate CVE-2026-27901

Details

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

EcosystemPackageAffected versions
npmsvelte
All versions before 5.53.5 (fixed in 5.53.5)

References