CVE-2026-27902 Svelte Vulnerable to XSS via HTML Comment Injection in SSR Error Boundary Hydration Markers
MediumCVSS 5.3
EPSS 0.27%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Red Hat
Description
Svelte performance oriented web framework. Prior to version 5.53.5, 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. Version 5.53.5 fixes the issue.
Upgrade path
4 packages: 2 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/rhdesktop/rh-podman-desktop-ext-bootc-rhel10(Red Hat podman_desktop 0) | All versions | No fix listed | No fix yet |
| npm svelte(npm) | >= 5.53.0, < 5.53.5 | 5.53.5 | Fixed |
| svelte | >= 5.53.0, < 5.53.5 | 5.53.5 | Fixed |
| sveltejs svelte | = >= 5.53.0, < 5.53.5 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| sveltejs svelte | = >= 5.53.0, < 5.53.5 | No fix listed |
| npm svelte(npm) | >= 5.53.0, < 5.53.5 | 5.53.5 |
| redhat/rhdesktop/rh-podman-desktop-ext-bootc-rhel10(Red Hat:podman_desktop:0) | All versions | No fix listed |
| redhat/rhoai/odh-dashboard-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| svelte | >= 5.53.0, < 5.53.5 | 5.53.5 |
References
- https://github.com/sveltejs/svelte/security/advisories/GHSA-qgvg-pr8v-6rr3 vendor-advisory
- https://github.com/sveltejs/svelte/commit/0298e979371bb583855c9810db79a70a551d22b9 patch
- https://github.com/sveltejs/svelte/releases/tag/svelte%405.53.5 release-notes
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2442917 issue-tracking
- www.cve.org
- github.com product