CVE-2026-27901: Svelte vulnerable to XSS during SSR with contenteditable `bind:innerText` and `bind:textContent`

Published Feb 26, 2026
·
Updated

Svelte 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.

Affected Software

4 affected componentsFixes available
npm/svelte<5.53.5
npm/svelte<=5.53.4
5.53.5
svelte Svelte Node.js<5.53.5
svelte Svelte Node.js=5.53.5

Event History

Feb 26, 2026
CVE Published
via MITRE·12:57 AM
Data Sourced
via MITRE·12:57 AM
DescriptionWeakness
Data Sourced
via NVD·02:16 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:16 AM
RemedyAffected Software
Advisory Published
via GitHub·10:24 PM
Data Sourced
via GitHub·10:24 PM
DescriptionWeaknessAffected Software
Dec 18, 58147
Event
via FIRST·09:38 AM

Frequently Asked Questions

1

What is the severity of CVE-2026-27901?

CVE-2026-27901 is classified as a medium severity vulnerability due to its potential for allowing cross-site scripting (XSS) attacks.

2

How do I fix CVE-2026-27901?

To fix CVE-2026-27901, upgrade Svelte to version 5.53.5 or later.

3

What areas of Svelte are affected by CVE-2026-27901?

CVE-2026-27901 affects the `bind:innerText` and `bind:textContent` attributes on `contenteditable` elements.

4

When was CVE-2026-27901 discovered?

CVE-2026-27901 was discovered prior to the release of Svelte version 5.53.5.

5

What issues can arise from CVE-2026-27901 if not addressed?

If not addressed, CVE-2026-27901 could enable an attacker to inject malicious HTML via XSS in applications using the affected Svelte versions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203