NetSight
medium5.3

CVE-2026-27902

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

Impact

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

EcosystemPackageAffectedFixed in
npmsvelte>= 5.53.0, < 5.53.55.53.5

Affected products

VendorProductAffected versions
SvelteSvelte
from 5.53.0 before 5.53.5

Weakness classification

References