{"id":"CVE-2026-42599","published":"2026-06-09T16:22:46Z","modified":"2026-06-09T18:39:04Z","title":"Cross-site scripting via spread attributes in Svelte SSR","vendor":"sveltejs","product":"svelte","tier":"tail","description":{"text":"Svelte is a performance oriented web framework. Prior to version 5.55.7, when using spread syntax to render attributes from untrusted data, event handler properties are included in the rendered HTML output. If an application spreads user-controlled or external data as element attributes, an attacker can inject malicious event handlers that execute in victims' browsers. Note that this vulnerability only triggers if the user's browser has JavaScript enabled but Svelte's hydration mechanism does not reach the vulnerable element before the event fires. This issue has been patched in version 5.55.7.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00205,"percentile":0.1073,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/sveltejs/svelte/security/advisories/GHSA-pr6f-5x2q-rwfp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sveltejs/svelte/releases/tag/svelte%405.55.7","tags":["x_refsource_MISC"]}],"priority":{"score":5.7,"factors":[{"name":"EPSS percentile","points":2.15},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"sveltejs","affectedVersions":[{"vendor":"sveltejs","product":"svelte","versions":["< 5.55.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-09T18:28:29.530383Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"svelte","vulnerableRanges":["<5.55.7"],"patched":["5.55.7"],"from":["GHSA-pr6f-5x2q-rwfp"],"provenance":"source"}],"summary":{"text":"Svelte, the performance-oriented web framework from sveltejs, contains a cross-site scripting flaw in its server-side rendering of spread attributes: event handler properties are included in the rendered HTML when untrusted data is spread as element attributes. An attacker who can supply that data to an application using this pattern can inject malicious event handlers that execute in a victim's browser, but only where the victim's browser has JavaScript enabled and Svelte's hydration does not reach the vulnerable element before the event fires.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:14Z"},"euvd":{"id":"EUVD-2026-35703","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-sveltejs-svelte-cve-2026-27121","parents":[{"from":"CVE-2026-27121","to":"CVE-2026-42599","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-pr6f-5x2q-rwfp","via":"reference","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27121"},{"kind":"similar","provenance":"machine","score":0.82,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2026-27901","published":"2026-02-26","fixed":"5.53.5","kev":false,"link":{"from":"CVE-2026-27901","to":"CVE-2026-42599","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:svelte","fromFixed":"5.53.5","toFixed":"5.55.7","daysApart":103}]}},{"cve":"CVE-2026-27902","published":"2026-02-26","fixed":"5.53.5","kev":false},{"cve":"CVE-2026-42567","published":"2026-06-09","fixed":"5.55.7","kev":false},{"cve":"CVE-2026-42573","published":"2026-06-09","fixed":"5.55.7","kev":false},{"cve":"CVE-2026-42599","published":"2026-06-09","fixed":"5.55.7","kev":false}],"package":"npm:svelte"}}