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.
Recommendation
Update the svelte package to the latest compatible version. Followings are version details:
- Affected version(s): >= 5.53.0, < 5.53.5
- Patched version(s): 5.53.5
References
Could your website be exposed too?
SmartScanner can check your website for Svelte: XSS via HTML Comment Injection in SSR Error Boundary Hydration Markers and gives you actionable findings to investigate.
Start a free scanRelated Issues
- SCEditor has DOM XSS via emoticon URL/HTML injection - CVE-2026-25581
- Nuxt OG Image is vulnerable to reflected XSS via query parameter injection into HTML attributes - CVE-2026-34405
- Svelte vulnerable to XSS during SSR with contenteditable `bind:innerText` and `bind:textContent` - CVE-2026-27901
- Marko: XSS via case-insensitive script/style closing tag bypass in runtime HTML escaping - CVE-2026-41591


