{"id":"CVE-2026-27902","summary":"Svelte Vulnerable to XSS via HTML Comment Injection in SSR Error Boundary Hydration Markers","details":"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.","aliases":["GHSA-qgvg-pr8v-6rr3"],"modified":"2026-08-12T03:51:16.462674134Z","published":"2026-02-26T00:58:54.604Z","database_specific":{"cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27902.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/sveltejs/svelte/releases/tag/svelte%405.53.5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27902.json"},{"type":"ADVISORY","url":"https://github.com/sveltejs/svelte/security/advisories/GHSA-qgvg-pr8v-6rr3"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27902"},{"type":"FIX","url":"https://github.com/sveltejs/svelte/commit/0298e979371bb583855c9810db79a70a551d22b9"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/sveltejs/svelte","events":[{"introduced":"c2fc95a4674f2db34fd71de70f088810bf2204b4"},{"fixed":"ed14b499d6ea6821b5e8f81a723164eb8198dfa9"},{"fixed":"0298e979371bb583855c9810db79a70a551d22b9"}],"database_specific":{"extracted_events":[{"introduced":"5.53.0"},{"fixed":"5.53.5"}],"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:svelte:svelte:*:*:*:*:*:node.js:*:*"}}],"versions":["svelte@5.53.4","svelte@5.53.3","svelte@5.53.2","svelte@5.53.1","svelte@5.53.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-27902.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}