sveltejs/svelte · Security

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

GHSA ID
GHSA-phwv-c562-gvmh
CVE ID
CVE-2026-27901
Severity
medium
Published
Updated
CVSS v4
5.3 · CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:H/SI:H/SA:N

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.

CWEs

References