GitHub Advisoryadvisory · npm

GHSA-rcqx-6q8c-2c42 Svelte Vulnerable to XSS via DOM Clobbering of Internal Framework State

MEDIUM Published 2026-05-14 Modified 2026-06-09 Official page ↗
Aliases
CVE-2026-42573
Ecosystem
npm
Packages
svelte
Severity
Moderate
CVSS 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
Reviewed
2026-05-14

Affected packages

• npm svelte: < 5.55.7 → fixed in 5.55.7

Description

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 ```

Related

Alias · CVE (1)

  • CVE-2026-42573 Svelte is a performance oriented web framework. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References