{"id":"CVE-2026-27902","published":"2026-02-26T00:58:54Z","modified":"2026-02-26T18:51:39Z","title":"Svelte Vulnerable to XSS via HTML Comment Injection in SSR Error Boundary Hydration Markers","vendor":"sveltejs","product":"svelte","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00278,"percentile":0.20503,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/sveltejs/svelte/security/advisories/GHSA-qgvg-pr8v-6rr3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/sveltejs/svelte/commit/0298e979371bb583855c9810db79a70a551d22b9","tags":["x_refsource_MISC"]},{"url":"https://github.com/sveltejs/svelte/releases/tag/svelte%405.53.5","tags":["x_refsource_MISC"]}],"priority":{"score":7.8,"factors":[{"name":"EPSS percentile","points":4.1},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"sveltejs","affectedVersions":[{"vendor":"sveltejs","product":"svelte","versions":[">= 5.53.0, < 5.53.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-26T18:51:28.889254Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"svelte","vulnerableRanges":[">=5.53.0, <5.53.5"],"patched":["5.53.5"],"from":["GHSA-qgvg-pr8v-6rr3"],"provenance":"source"}],"summary":{"text":"Svelte, a web framework for building performance-oriented web applications, contains an XSS flaw in its server-side rendering error boundary hydration markers, where errors returned from transformError are not properly escaped before being embedded in HTML output in versions prior to 5.53.5. An attacker who can get attacker-controlled content returned from transformError can inject HTML and script, provided the victim interacts with the page (user interaction required) and the attack depends on the application's use of transformError with such content (a high-complexity condition).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:09Z"},"euvd":{"id":"EUVD-2026-8800","exploited":false,"provenance":"source"}}