Medium severity · published Jun 9, 2026
CVE-2026-42599
Cross-site scripting via spread attributes in Svelte SSR
6.1
CVSS
0.2%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 10% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
SV
svelte · sveltejs
< 5.55.7 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-42599
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-42599
Release Notes
https://github.com/sveltejs/svelte/releases/tag/svelte%405.55.7
Vendor Advisory
https://github.com/sveltejs/svelte/security/advisories/GHSA-pr6f-5x2q-rwfp
More from svelte
7.5
CVE-2026-42567
Svelte: ReDoS in `<svelte:element>` Tag Validation
6.8
CVE-2026-27125
Svelte SSR attribute spreading includes inherited properties from prototype chain
6.1
CVE-2026-42573
Svelte: XSS via DOM Clobbering of Internal Framework State
6.1
CVE-2026-27901
Svelte vulnerable to XSS during SSR with contenteditable `bind:innerText` and `bind:textContent`
5.4
CVE-2026-27902
Svelte Vulnerable to XSS via HTML Comment Injection in SSR Error Boundary Hydration Markers
