Advisory

GHSA-rcqx-6q8c-2c42

Also known as: CVE-2026-42573

Summary

Svelte Vulnerable to XSS via DOM Clobbering of Internal Framework State

Details

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>

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-05-14 20:29 UTC
Modified
2026-06-09 18:45 UTC

Affected packages and fixes

svelte

npm · All systems

Affected

  • introduced 0, fixed 5.55.7 (semver)

Fixed versions

5.55.7

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences