All reports
Medium

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

Affected versions

Affected versions
<= 5.53.4
Fixed version
5.53.5

Exploitation

CVE-2026-27901

Probability of exploitation in the next 30 days: 0.26%

FIRST EPSS · 2026-11-24

Description

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.

Links

Credits

  • paoloricciuti
  • elliott-with-the-longest-name-on-github
  • KarimPwnz