All reports
Medium

Svelte: ReDoS in `<svelte:element>` Tag Validation

Affected versions

Affected versions
>= 5.51.5, <= 5.55.6
Fixed version
5.55.7
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-42567

Probability of exploitation in the next 30 days: 0.45%

FIRST EPSS · 2026-11-19

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.

Links

Credits

  • Meltedd
  • dummdidumm
  • elliott-with-the-longest-name-on-github