CVE-2026-42573
Undergoing Analysis Undergoing Analysis - In Progress
DOM Clobbering XSS in Svelte Framework

Publication date: 2026-06-09

Last updated on: 2026-06-09

Assigner: GitHub, Inc.

Description
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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-09
Last Modified
2026-06-09
Generated
2026-06-10
AI Q&A
2026-06-09
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
svelte svelte to 5.55.7 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

CVE-2026-42573 is a DOM clobbering vulnerability in the Svelte framework that affects versions prior to 5.55.7.

This vulnerability occurs when attribute spreading is used on a form element along with dynamic or user-controllable values for the name attribute on input or button elements within that form.

An attacker can exploit this to manipulate the internal framework state, potentially leading to cross-site scripting (XSS) attacks by executing malicious scripts.

Impact Analysis

This vulnerability can impact you by allowing attackers to execute unauthorized scripts within your application, leading to cross-site scripting (XSS) attacks.

Such attacks can compromise the confidentiality and integrity of your systems by enabling unauthorized data access and modification.

The vulnerability requires low privileges and no user interaction but has high attack complexity and present attack requirements.

Detection Guidance

This vulnerability occurs in Svelte versions prior to 5.55.7 when attribute spreading is used on form elements along with dynamic or user-controllable values for the name attribute on input or button elements within that form.

Detection involves identifying if your application uses a vulnerable version of Svelte and if it uses attribute spreading on form elements with dynamic name attributes on inputs or buttons.

Since this is a framework-level vulnerability related to DOM clobbering and XSS, network detection commands are not directly applicable.

To detect vulnerable versions, you can check the installed Svelte version in your project by running:

  • npm list svelte

To scan your codebase for usage patterns that might be vulnerable, you can search for attribute spreading on form elements and dynamic name attributes using commands like:

  • grep -r "<form" ./src
  • grep -r "name={" ./src

Manual code review focusing on these patterns is recommended to identify potential exploit points.

Mitigation Strategies

The primary mitigation step is to upgrade Svelte to version 5.55.7 or later, where this vulnerability has been patched.

Avoid using attribute spreading on form elements combined with dynamic or user-controllable values for the name attribute on input or button elements until the upgrade is applied.

Review your codebase for any such usage patterns and refactor them to use static or sanitized values.

Apply general security best practices such as sanitizing user inputs and implementing Content Security Policy (CSP) headers to reduce the impact of potential XSS attacks.

Compliance Impact

The vulnerability in Svelte prior to version 5.55.7 allows for DOM clobbering that can lead to cross-site scripting (XSS) attacks. Such attacks can compromise the confidentiality and integrity of data by enabling unauthorized data access and modification.

Since regulations like GDPR and HIPAA require protection of personal and sensitive data against unauthorized access and breaches, this vulnerability could negatively impact compliance by exposing systems to potential data breaches through XSS attacks.

Therefore, if an application using vulnerable versions of Svelte processes regulated data, it may be at increased risk of non-compliance with these standards until the vulnerability is patched.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-42573. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart