CVE-2026-27902
MEDIUM 5.3CVSS 4.0Svelte: XSS via HTML Comment Injection in SSR Error Boundary Hydration Markers
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.
- Published
- 26 Feb 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-qgvg-pr8v-6rr3
- Sources
- NVDJSONOSV GHSA-qgvg-pr8v-6rr3JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | svelte | sveltecpe:2.3:a:svelte:svelte:*:*:*:*:*:node.js:*:* |
>= 5.53.0, < 5.53.5 | 5.53.5 |
| OSV | npm | svelte | >= 5.53.0, < 5.53.5 | 5.53.5 |
References
- https://github.com/sveltejs/svelte/commit/0298e979371bb583855c9810db79a70a551d22b9 · Patch, WEB
- https://github.com/sveltejs/svelte/releases/tag/svelte%405.53.5 · Release Notes
- https://github.com/sveltejs/svelte/security/advisories/GHSA-qgvg-pr8v-6rr3 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-27902 · ADVISORY
- https://github.com/sveltejs/svelte · PACKAGE
- https://github.com/sveltejs/svelte/releases/tag/svelte@5.53.5 · WEB
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 26 Feb 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 Feb 2026)