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…

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: Tue Jun 09 2026 (06/09/2026, 16:22:46 UTC)
Source: CVE Database V5
Vendor/Project: sveltejs
Product: svelte

Description

Svelte versions prior to 5. 55. 7 have a cross-site scripting (XSS) vulnerability due to improper neutralization of input when using spread syntax to render attributes from untrusted data. This allows malicious event handlers to be injected into rendered HTML if user-controlled data is spread as element attributes. The vulnerability requires JavaScript enabled in the victim's browser and that Svelte's hydration does not reach the vulnerable element before the event fires. The issue is fixed 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

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: 6/9/2026, 5:26:19 PM

Last enriched: 6/9/2026, 11:26:41 PM

Last updated: 6/10/2026, 6:22:32 AM

Views: 5

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