Medium severity · published Feb 26, 2026
CVE-2026-27902
Svelte Vulnerable to XSS via HTML Comment Injection in SSR Error Boundary Hydration Markers
5.4
CVSS
0.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 19% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
SV
svelte · sveltejs
>= 5.53.0, < 5.53.5 · source: vendor, NVD
Affected product
SV
svelte
sveltejs
More from svelte
7.5
CVE-2026-42567
Svelte: ReDoS in `<svelte:element>` Tag Validation
6.8
CVE-2026-27125
Svelte SSR attribute spreading includes inherited properties from prototype chain
6.1
CVE-2026-42599
Cross-site scripting via spread attributes in Svelte SSR
6.1
CVE-2026-42573
Svelte: XSS via DOM Clobbering of Internal Framework State
6.1
CVE-2026-27901
Svelte vulnerable to XSS during SSR with contenteditable `bind:innerText` and `bind:textContent`