{"id":"GHSA-pr6f-5x2q-rwfp","revision":"c1482e687c234d3fb6c5c3a73ab9fcd3","records":[{"revision":"c1482e687c234d3fb6c5c3a73ab9fcd3","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-pr6f-5x2q-rwfp","aliases":["CVE-2026-42599"],"title":"Svelte SSR vulnerable to cross-site scripting via spread attributes","description":"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.\n\nThis is similar to but different from [CVE-2026-27121](https://nvd.nist.gov/vuln/detail/CVE-2026-27121).","state":0,"publishedAt":"2026-05-14T20:19:42+00:00","modifiedAt":"2026-06-09T18:45:27.1634312+00:00","affected":[{"ecosystem":"npm","name":"svelte","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"5.55.7"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/sveltejs/svelte/security/advisories/GHSA-pr6f-5x2q-rwfp","https://nvd.nist.gov/vuln/detail/CVE-2026-27121","https://nvd.nist.gov/vuln/detail/CVE-2026-42599","https://github.com/sveltejs/svelte","https://github.com/sveltejs/svelte/releases/tag/svelte%405.55.7"],"sourceUrl":"https://github.com/advisories/GHSA-pr6f-5x2q-rwfp","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-pr6f-5x2q-rwfp","identifiers":["GHSA-pr6f-5x2q-rwfp","CVE-2026-42599"]},"retained":false,"historicalAffected":[]}],"coverage":[]}