{"id":"GHSA-rcqx-6q8c-2c42","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.\n\nYou are vulnerable if all of the following is true:\n- you are using attribute spreading on a form element\n- you are using attribute spreading or allow a dynamic value for the `name` attribute on an input or button element within that form\n- both of these are simultaneously user-controllable\n\n```svelte\n\u003cform {...spread1}\u003e\n  \u003cinput {...spread2}\u003e\n\u003c/form\u003e\n```","aliases":["CVE-2026-42573"],"modified":"2026-06-09T18:45:28.738624174Z","published":"2026-05-14T20:29:13Z","database_specific":{"nvd_published_at":"2026-06-09T17:17:07Z","cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-05-14T20:29:13Z"},"references":[{"type":"WEB","url":"https://github.com/sveltejs/svelte/security/advisories/GHSA-rcqx-6q8c-2c42"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42573"},{"type":"PACKAGE","url":"https://github.com/sveltejs/svelte"},{"type":"WEB","url":"https://github.com/sveltejs/svelte/releases/tag/svelte%405.55.7"}],"affected":[{"package":{"name":"svelte","ecosystem":"npm","purl":"pkg:npm/svelte"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.55.7"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 5.55.6","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-rcqx-6q8c-2c42/GHSA-rcqx-6q8c-2c42.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}