Skip to main content
← All vulnerabilities
CVE-2026-27902GHSA-QGVG-PR8V-6RR3

Svelte Vulnerable to XSS via HTML Comment Injection in SSR Error Boundary Hydration Markers

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.53.5
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

Svelte performance oriented web framework. Prior to version 5.53.5, errors from `transformError` were not correctly escaped prior to being embedded in the HTML output, causing potential HTML injection and XSS if attacker-controlled content is returned from `transformError`. Version 5.53.5 fixes the issue.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • sveltejs svelte

    From 5.53.0 · fixed in 5.53.5

  • sveltenpm

    From 5.53.0 · fixed in 5.53.5

References 3

GitHub · sveltejs/svelte