CVE-2026-42573

Svelte: XSS via DOM Clobbering of Internal Framework State

Published Jun 9, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Svelte versions prior to 5.55.7 contain a flaw that allows an attacker to clobber internal framework state on DOM elements, creating a client‑side XSS vector. By injecting crafted attribute values, malicious code can execute in the victim’s browser, potentially leading to session hijacking, data theft, or further exploitation of web application logic.

Affected Systems

The vulnerability affects the Svelte JavaScript framework from the sveltejs organization. Any application built with a Svelte version earlier than 5.55.7 is at risk, including dependencies that transitively bundle older Svelte releases.

Risk and Exploitability

The CVSS v3.1 score is 5.3, indicating moderate severity. EPSS information is not currently available, but the vulnerability is not listed in CISA’s KEV catalog. Exploitation requires a user to visit a page that uses the vulnerable Svelte build; the attacker supplies malicious attribute values that overwrite internal framework state, enabling script execution. Because the flaw is client‑side, it is broadly applicable but does not grant direct access to server‑side resources.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Svelte framework to version 5.55.7 or later in all project and dependency trees.
  • Run a dependency audit to ensure that no older Svelte releases remain in your build or third‑party packages.
  • Configure a strict content‑security‑policy that restricts script sources and mitigates any remaining XSS vectors.

Generated by OpenCVE AI on June 9, 2026 at 18:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-rcqx-6q8c-2c42 Svelte Vulnerable to XSS via DOM Clobbering of Internal Framework State
History
Type Values Removed Values Added
CPEs cpe:2.3:a:svelte:svelte:*:*:*:*:*:node.js:*:*
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

Type Values Removed Values Added
First Time appeared Svelte
Svelte svelte
Vendors & Products Svelte
Svelte svelte
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Svelte: XSS via DOM Clobbering of Internal Framework State
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:H/SI:H/SA:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 15, 2026, 12:57 AM
Reserved
Apr 28, 2026, 5:26 PM
Status
Modified
Published
Jun 9, 2026, 5:17 PM
Modified
Jul 23, 2026, 8:10 AM
Severity
Important
Public date
Jun 9, 2026, 4:21 PM