Advisory

GHSA-9rmh-mm8f-r9h6

Also known as: CVE-2026-42567

Summary

Svelte: ReDoS in <svelte:element> Tag Validation

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-05-14 20:29 UTC
Modified
2026-06-09 18:45 UTC

Affected packages and fixes

svelte

npm · All systems

Affected

  • introduced 5.51.5, fixed 5.55.7 (semver)

Fixed versions

5.55.7

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences