Advisory

GHSA-qgvg-pr8v-6rr3

Also known as: CVE-2026-27902

Summary

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

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-02-26 22:25 UTC
Modified
2026-02-26 22:37 UTC

Affected packages and fixes

svelte

npm · All systems

Affected

  • introduced 5.53.0, fixed 5.53.5 (semver)

Fixed versions

5.53.5

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences