CVE-2026-42573: Svelte: XSS via DOM Clobbering of Internal Framework State

Published May 14, 2026
·
Updated

Svelte is a performance oriented web framework. Prior to version 5.55.7, Svelte was vulnerable to DOM clobbering of its internal framework state on elements, potentially leading to XSS attacks. This issue has been patched in version 5.55.7.

Other sources

Svelte was vulnerable to DOM clobbering of its internal framework state on elements, potentially leading to XSS attacks.

You are vulnerable if all of the following is true: - you are using attribute spreading on a form element - you are using attribute spreading or allow a dynamic value for the name attribute on an input or button element within that form - both of these are simultaneously user-controllable

svelte <form {...spread1}> <input {...spread2}> </form>

GitHub

Affected Software

2 affected componentsFixes available
npm/svelte<=5.55.6
5.55.7
svelte Svelte Node.js<5.55.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/svelte to a version that resolves this vulnerability.

    Fixed in 5.55.7
  2. Upgrade

    Upgrade Svelte to a version that resolves this vulnerability.

    Fixed in 5.55.7

Event History

May 14, 2026
Advisory Published
via GitHub·08:29 PM
Data Sourced
via GitHub·08:29 PM
DescriptionWeaknessAffected Software
Jun 9, 2026
CVE Published
via MITRE·04:21 PM
Data Sourced
via MITRE·04:21 PM
DescriptionWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·06:02 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-42573?

CVE-2026-42573 has a moderate severity rating due to its potential to lead to XSS attacks.

2

How do I fix CVE-2026-42573?

To fix CVE-2026-42573, upgrade to Svelte version 5.55.7 or later.

3

What are the conditions that make me vulnerable to CVE-2026-42573?

You are vulnerable to CVE-2026-42573 if you are using attribute spreading on a form element and allow a dynamic value for certain attributes.

4

What type of attack can CVE-2026-42573 lead to?

CVE-2026-42573 can lead to Cross-Site Scripting (XSS) attacks due to DOM clobbering.

5

What software versions are affected by CVE-2026-42573?

Versions of Svelte up to 5.55.6 are affected by CVE-2026-42573.

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