Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 94%

CVE-2026-42599: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in sveltejs svelte

0
Medium
VulnerabilityCVE-2026-42599cvecve-2026-42599cwe-79
Published: 06/09/2026 (06/09/2026, 16:22:46 UTC)
Source: CVE Database V5
Vendor/Project: sveltejs
Product: svelte

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 v4.0

Score 5.1medium

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
High
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
High
Subsq. Integrity
High
Subsq. Availability
None
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

Affected software

sveltejs/svelte
pkg:npm/sveltejs/svelte
Affected versions
<5.55.7

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/09/2026, 23:26:41 UTC

Technical Analysis

CVE-2026-42599 describes a cross-site scripting vulnerability in the Svelte web framework before version 5.55.7. When applications use spread syntax to render attributes from untrusted sources, event handler properties are included in the output HTML, enabling injection of malicious event handlers. This vulnerability triggers only if the victim's browser has JavaScript enabled and Svelte's hydration mechanism does not process the vulnerable element before the event fires. The vulnerability is addressed by a patch in Svelte version 5.55.7.

Potential Impact

An attacker can inject malicious event handlers into the HTML output of a Svelte application, potentially executing arbitrary JavaScript in the context of the victim's browser. This can lead to cross-site scripting attacks, compromising user data or session integrity. The vulnerability requires specific conditions related to JavaScript execution and hydration timing, which may limit exploitation scenarios.

Mitigation Recommendations

This vulnerability has been patched in Svelte version 5.55.7. Users and developers should upgrade to version 5.55.7 or later to remediate this issue. No additional mitigation steps are indicated by the vendor advisory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-29T00:31:15.725Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a284cbb8dd33fbd85664541

Added to database: 06/09/2026, 17:26:19 UTC

Last enriched: 06/09/2026, 23:26:41 UTC

Last updated: 07/31/2026, 19:22:58 UTC

Views: 32

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses