Vulnerabilities/

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

Severity:
Medium

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.

Recommendation

Update the svelte package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
svelte
Anything's wrong? Let us know Last updated on March 11, 2026