Every CVE Search/ Get API key

CVE-2026-42599

Cross-site scripting via spread attributes in Svelte SSR

5.1 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
High
User interaction
None

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
None

Exploit likelihood

0.21%Up 0.2 points since Jun 10, 2026
90%50%10%1%

What each source reports

CVE List Score used 5.1

Cross-site scripting via spread attributes in Svelte SSR

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.

Record
CVE-2026-42599
CVSS 4.0
5.1 MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
Weakness
CWE-79
Updated
2026-11-02
EUVDEUVD-2026-35703 5.1

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.

Record
EUVD-2026-35703
CVSS 4.0
5.1 MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-pr6f-5x2q-rwfp 5.1

Svelte SSR vulnerable to cross-site scripting via spread attributes

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 is similar to but different from CVE-2026-27121.

Record
GHSA-pr6f-5x2q-rwfp
CVSS 4.0
5.1 MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
Weakness
CWE-79
Updated
2026-11-02
NVD 5.1

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.

Record
CVE-2026-42599
CVSS 4.0
5.1 MediumCVSS: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
CVSS 3.1
6.1 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-79
Updated
2026-11-02
OSV 5.1

Cross-site scripting via spread attributes in Svelte SSR

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.

Record
CVE-2026-42599
CVSS 4.0
5.1 MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
Weakness
CWE-79
Updated
2026-11-02
OSVGHSA-pr6f-5x2q-rwfp 5.1

Svelte SSR vulnerable to cross-site scripting via spread attributes

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 is similar to but different from CVE-2026-27121.

Record
GHSA-pr6f-5x2q-rwfp
CVSS 4.0
5.1 MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
Weakness
CWE-79
Updated
2026-11-02
Show 5 moreShow less
OSVCLSA-2026-1784077486 No score

TuxCare security update for svelte (1 CVE)

TuxCare rebuilt svelte to address 1 CVE. Fixed in 4.2.20-tuxcare.2.

Record
CLSA-2026-1784077486
Updated
2026-11-02
OSVCLSA-2026-1784769502 No score

TuxCare security update for svelte (1 CVE)

TuxCare rebuilt svelte to address 1 CVE. Fixed in 2.16.1-tuxcare.2.

Record
CLSA-2026-1784769502
Updated
2026-11-02
OSVCLSA-2026-1784769535 No score

TuxCare security update for svelte (1 CVE)

TuxCare rebuilt svelte to address 1 CVE. Fixed in 1.64.1-tuxcare.2.

Record
CLSA-2026-1784769535
Updated
2026-11-02
OSVCLSA-2026-1784769620 No score

TuxCare security update for svelte (1 CVE)

TuxCare rebuilt svelte to address 1 CVE. Fixed in 0.3.0-tuxcare.2.

Record
CLSA-2026-1784769620
Updated
2026-11-02
OSVCLSA-2026-1786361581 No score

TuxCare security update for jsonwebtoken (2 CVEs)

TuxCare rebuilt jsonwebtoken to address 2 CVEs. Fixed in 0.3.0-tuxcare.2.

Record
CLSA-2026-1786361581
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
svelte
npm
through 5.55.6
5.55.7
svelte
TuxCare:npm
4.2.20-tuxcare.0 up to 4.2.20-tuxcare.2, plus listed versions
4.2.204.2.20-tuxcare.1
4.2.20-tuxcare.2
svelte
TuxCare:npm
2.16.1-tuxcare.0 up to 2.16.1-tuxcare.2, plus listed versions
2.16.12.16.1-tuxcare.1
2.16.1-tuxcare.2
svelte
TuxCare:npm
1.64.1-tuxcare.0 up to 1.64.1-tuxcare.2, plus listed versions
1.64.11.64.1-tuxcare.1
1.64.1-tuxcare.2
svelte
TuxCare:npm
0.3.0-tuxcare.0 up to 0.3.0-tuxcare.2, plus listed versions
0.3.00.3.0-tuxcare.1
0.3.0-tuxcare.2
svelte
npm
before 5.55.7
5.55.7

History

History
RecordedChangedSources
facts
affected
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-42599 is a medium vulnerability (CVSS 5.1) in Svelte, published May 14, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.21%, the 10th percentile. Fixed in svelte 5.55.7.

References

MoveEnter Open