CVE-2026-42599: Cross-site scripting via spread attributes in Svelte SSR
Vulnerability summary
CVE-2026-42599 is a medium (CVSS 6.1) vulnerability in svelte. EPSS estimates a 0.21% chance of exploitation in the next 30 days, higher than 10.5% of scored vulnerabilities.
Not severe (CVSS 5.1, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 09-06-2026PublishedVulnerability first disclosed.
- 09-06-2026Last modifiedVulnerability information updated.
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 metrics
5 scores · 4 sources · 2 versions- OSV · NpmEcosystem advisory · calculated5.1MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
- OSV · ChainguardEcosystem advisory · calculated5.1MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
- NVDNIST5.1MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
0.21%
Chance of exploitation in the next 30 days
Percentile
11%
Versus all other CVEs
30-day change
Decrease -0.03 pp
From 0.24% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard3 products
- langfuse-2-workerAll versions (No fix recorded)
- langfuse-fips-2-workerAll versions (No fix recorded)
- langfuse-fips-3.152-workerAll versions (No fix recorded)
Npm1 product
- svelte< 5.55.7
Svelte1 product
- svelte< 5.55.7
Sveltejs1 product
- svelte< 5.55.7
4 vendors · 6 products
References
6 links- github.com/sveltejs/svelte/security/advisories/GHSA-pr6f-5x2q-rwfpX Refsource CONFIRMWEBAdvisoryVendor Advisory
- github.com/sveltejs/sveltePACKAGE