Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. svelte
  4. ›
  5. CVE-2026-42573

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

May 14, 2026 (updated June 9, 2026)

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
<form {...spread1}>
<input {...spread2}>
</form>

References

  • github.com/advisories/GHSA-rcqx-6q8c-2c42
  • github.com/sveltejs/svelte/releases/tag/svelte%405.55.7
  • github.com/sveltejs/svelte/security/advisories/GHSA-rcqx-6q8c-2c42
  • nvd.nist.gov/vuln/detail/CVE-2026-42573

Code Behaviors & Features

Detect and mitigate CVE-2026-42573 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.55.7

Fixed versions

  • 5.55.7

Solution

Upgrade to version 5.55.7 or above.

Impact 8.2 HIGH

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/svelte/CVE-2026-42573.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:22:51 +0000.