Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-27902 EUVD-2026-8800GHSA-qgvg-pr8v-6rr3

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

Published Feb 26, 2026 · Updated Feb 26, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
sveltejs svelte >= 5.53.0, < 5.53.5 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm svelte >= 5.53.0, < 5.53.5 5.53.5 GHSA-qgvg-pr8v-6rr3

References