Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. svelte
  4. ›
  5. CVE-2026-42567

CVE-2026-42567: Svelte: ReDoS in `<svelte:element>` Tag Validation

May 14, 2026 (updated June 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 to svelte:element, you are safe.

References

  • github.com/advisories/GHSA-9rmh-mm8f-r9h6
  • github.com/sveltejs/svelte/releases/tag/svelte%405.55.7
  • github.com/sveltejs/svelte/security/advisories/GHSA-9rmh-mm8f-r9h6
  • nvd.nist.gov/vuln/detail/CVE-2026-42567

Code Behaviors & Features

Detect and mitigate CVE-2026-42567 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.51.5 before 5.55.7

Fixed versions

  • 5.55.7

Solution

Upgrade to version 5.55.7 or above.

Impact 4.4 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

npm/svelte/CVE-2026-42567.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:28 +0000.