CVE-2026-27902 MEDIUM

CVE-2026-27902: Svelte Vulnerable to XSS via HTML Comment Injection in SSR Error Boundary Hydration Markers

Vendor Sveltejs
Product svelte
Weakness CWE-79 · XSS
Published February 26, 2026
Last update February 26, 2026

CVSS base score

5.3/10
Attack vector Network
Attack complexity High
Privileges required None
User interaction
Confidentiality
Integrity

CVSS vector

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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

February 26, 2026 CVE published
February 26, 2026 Record updated

Related vulnerabilities

04Related CVE