{"id":"CVE-2026-27902","aliases":["CVE-2026-27902","GHSA-qgvg-pr8v-6rr3"],"related":[],"kind":"vulnerability","state":"published","title":"Svelte Vulnerable to XSS via HTML Comment Injection in SSR Error Boundary Hydration Markers","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"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`.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Framework web Svelte orientado al rendimiento. Antes de la versión 5.53.5, los errores de `transformError` no se escapaban correctamente antes de ser incrustados en la salida HTML, lo que causaba una posible inyección HTML y XSS si el contenido controlado por el atacante se devuelve desde `transformError`. La versión 5.53.5 corrige el problema.","source":"nvd"}],"published":"2026-02-26T00:58:54.604Z","modified":"2026-06-17T10:27:51.073Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS: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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 5.53.0, < 5.53.5","status":"affected"}],"vendor":"sveltejs","product":"svelte","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"5.53.0","status":"affected","fixed":"5.53.5"}],"ecosystem":"npm","package":"svelte","purl":"pkg:npm/svelte","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"5.53.0","fixed":"5.53.5"}],"vendor":"svelte","product":"svelte","cpe":"cpe:2.3:a:svelte:svelte:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/sveltejs/svelte/security/advisories/GHSA-qgvg-pr8v-6rr3","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sveltejs/svelte/commit/0298e979371bb583855c9810db79a70a551d22b9","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sveltejs/svelte/releases/tag/svelte%405.53.5","tags":["release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27902","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/sveltejs/svelte","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/sveltejs/svelte/releases/tag/svelte@5.53.5","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-02-26T18:51:28.889Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-27902","url":"https://www.cve.org/CVERecord?id=CVE-2026-27902","licence":"CVE Terms of Use","modified":"2026-02-26T18:51:39.142Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qgvg-pr8v-6rr3","url":"https://github.com/advisories/GHSA-qgvg-pr8v-6rr3","licence":"CC-BY-4.0","modified":"2026-02-26T22:37:20.605Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-27902","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27902","licence":"Public domain","modified":"2026-06-17T10:27:51.073Z"}],"updatedAt":"2026-11-25T22:59:14.934Z","epss":{"score":0.00278,"percentile":0.21678,"date":"2026-12-01T12:00:22.000Z"}}