Skip to main content

Svelte CVE-2026-42567

| EUVDEUVD-2026-35702 MEDIUM
Inefficient Regular Expression Complexity (ReDoS) (CWE-1333)
2026-05-14 https://github.com/sveltejs/svelte GHSA-9rmh-mm8f-r9h6
5.9
CVSS 4.0 · Vendor: https://github.com/sveltejs/svelte
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker crafts request with long tag string
  2. Delivery
    Submit to vulnerable endpoint
  3. Exploit
    Svelte runtime validates tag via regex
  4. Install
    Regex enters catastrophic backtracking
  5. C2
    Application CPU maxes out
  6. Execute
    Request hangs indefinitely
  7. Impact
    Service unavailable

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Regex complexity limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The application must meet ALL of the following conditions to be vulnerable: (1) Use the <svelte:element this={prop}> syntax, (2) Accept tag names from untrusted sources (HTTP query parameters, form input, database records, API responses) without validation, (3) Pass unconstrained or insufficiently constrained tag name lengths directly to the this prop, and (4) Run affected Svelte versions (5.51.5 through 5.55.6). Applications that enforce a predetermined whitelist of allowed tags (e.g., 'div', 'span', 'p'), validate tag format against HTML5 specifications, trim tag names to a reasonable maximum length, or use <svelte:element> only with hardcoded or developer-controlled tag values are NOT vulnerable. The vulnerability is limited to the tag validation regex and does not affect other Svelte components or functionality.

Impact

This is a limited-scope denial-of-service vulnerability with significant real-world constraints. CVSS data is not provided, but CWE-1333 (ReDoS) and the description classify this as Denial of Service. The attack vector is bounded: exploitation requires the application to (1) use the <svelte:element> component, (2) pass user-controlled or untrusted input directly as the tag name, and (3) accept unconstrained tag lengths. Applications that enforce a whitelist of allowed tags, validate tag format, or trim input before passing to <svelte:element> are not vulnerable-these are common practices. The technical impact, if triggered, is service degradation or application hang rather than data breach or code execution. No CVSS vector, EPSS score, or active exploitation data (KEV status) is provided; the vulnerability is tracked by GitHub Security Advisory (GHSA-9rmh-mm8f-r9h6) but has not been flagged as actively exploited in CISA KEV. The practical risk depends entirely on application architecture: server-side rendering (SSR) with unrestricted user-supplied tag names poses higher risk than client-side-only deployments with tag validation.

Exploit ScenarioDerived

An attacker crafts an HTTP request with a specially formatted, extremely long tag name string and submits it to a Svelte application that dynamically renders user-supplied tags via <svelte:element this={userInput}>. During server-side rendering or client-side component initialization, the Svelte runtime attempts to validate the tag name using the vulnerable regex, triggering exponential backtracking. The application CPU usage spikes, request processing hangs, and other legitimate requests timeout or fail, resulting in denial of service.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 14, 2026

Regular expression denial of service (ReDoS) in Svelte 5.51.5 through 5.55.6 allows attackers to cause application hang or crash by passing unconstrained-length tag names to the <svelte:element> component, triggering exponential regex evaluation time in the runtime tag validation logic. The vulnerability requires applications to accept user-controlled tag input without length or content restrictions.

RemediationAI

Upgrade Svelte to version 5.55.7 or later, which includes the regex hardening patch (commit d2375e2ebcab5c88feb5652f1a9d621b8f06b259). If immediate upgrade is not feasible, implement compensating controls: validate and whitelist allowed HTML element names before passing them to <svelte:element this={tag}>, enforce maximum tag name length (standard HTML5 tag names are under 20 characters), or disable the <svelte:element> component in user-controlled code paths. Whitelist-based validation is the most robust mitigation and recommended regardless of patch status. See https://github.com/sveltejs/svelte/releases/tag/svelte%405.55.7 for the patch details and https://github.com/sveltejs/svelte/security/advisories/GHSA-9rmh-mm8f-r9h6 for the full advisory.

Affected VersionsENISA

svelte 5.51.5, < 5.55.7

Affected Packages

npm svelte fix: 5.55.7

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists in an internal regex pattern used by the Svelte runtime to validate HTML element tags within the <svelte:element this={tag}> dynamic component syntax. Svelte uses this mechanism to dynamically render HTML elements specified via the this prop. The regex pattern exhibits catastrophic backtracking behavior (CWE-1333: Inefficient Regular Expression Complexity) when tested against specially crafted input strings of exponential length. The affected versions (5.51.5 through 5.55.6) contain the vulnerable regex implementation; the issue was fixed in version 5.55.7 with a regex hardening patch (commit d2375e2e).

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/sveltejs/svelte) PRIMARY 5.9 MEDIUM
CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 5.9 MEDIUM

Primary rating from Vendor (https://github.com/sveltejs/svelte).

CVSS VectorVendor: https://github.com/sveltejs/svelte

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
Jun 09, 2026 - 17:22 NVD
5.9 (MEDIUM)
CVE Published
May 14, 2026 - 20:29 nvd
MEDIUM

DescriptionCVE.org

An internal regex in the Svelte runtime can take exponential time to test in <svelte:element this={tag}></svelte:element>. You are only vulnerable to this if you allow tags of unconstrained length. If your application only allows a predetermined list of tags or trims their length before passing them to svelte:element, you are safe.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1 npm packages depend on svelte (1 direct, 0 indirect)

Ecosystem-wide dependent count for version 5.51.5.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy