Svelte: ReDoS in `<svelte:element>` Tag Validation
Description
Published to the GitHub Advisory Database
May 14, 2026
Reviewed
May 14, 2026
Published by the National Vulnerability Database
Jun 9, 2026
Last updated
Jun 9, 2026
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 tosvelte:element, you are safe.References