sveltejs/svelte · Security
Svelte: XSS via HTML Comment Injection in SSR Error Boundary Hydration Markers
- GHSA ID
- GHSA-qgvg-pr8v-6rr3
- CVE ID
- CVE-2026-27902
- Severity
- medium
- Published
- Updated
- CVSS v4
- 5.3 · CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:H/SI:H/SA:N
Description
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.
CWEs
- CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- https://github.com/sveltejs/svelte/security/advisories/GHSA-qgvg-pr8v-6rr3 ↗
- https://nvd.nist.gov/vuln/detail/CVE-2026-27902 ↗
- https://github.com/sveltejs/svelte/commit/0298e979371bb583855c9810db79a70a551d22b9 ↗
- https://github.com/sveltejs/svelte/releases/tag/[email protected] ↗
- https://github.com/advisories/GHSA-qgvg-pr8v-6rr3 ↗