Description
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.
Recommendation
Update the svelte package to the latest compatible version. Followings are version details:
- Affected version(s): >= 5.51.5, <= 5.55.6
- Patched version(s): 5.55.7
References
Could your website be exposed too?
SmartScanner can check your website for Svelte: ReDoS in `<svelte:element>` Tag Validation and gives you actionable findings to investigate.
Start a free scanRelated Issues
- Svelte SSR does not validate dynamic element tag names in `<svelte:element>` - CVE-2026-27122
- Svelte affected by XSS in SSR `<option>` element - CVE-2026-27119
- xmldom: requireWellFormed element/attribute name validation is bypassable via an embedded line terminator - CVE-2026-83617
- xmldom: End-tag Whitespace-Trim Regex ReDoS — quadratic backtracking in the 0.8.x end-tag parser - CVE-2026-83619


