ADVISORIES

GitHub Advisory Database

GHSA-qgvg-pr8v-6rr3

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

Moderate CVE-2026-27902

Details

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.

Affected packages

EcosystemPackageAffected versions
npmsvelte
From 5.53.0 before 5.53.5 (fixed in 5.53.5)

References