{"id":"CVE-2026-27902","aliases":["GHSA-qgvg-pr8v-6rr3"],"summary":"Svelte Vulnerable to XSS via HTML Comment Injection in SSR Error Boundary Hydration Markers","published_at":"2026-02-26T00:58:54.604Z","modified_at":"2026-03-16T08:31:24Z","products":[],"rating":{"severity":"medium","score":5.3,"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","attack_path":"internet_unauthenticated","user_interaction":true,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0027199999894946814,"percentile":0.19844000041484833,"date":"2026-11-19T00:00:00Z"},"priority":6.8,"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.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"sveltejs/svelte","versions":[">= 5.53.0, < 5.53.5"],"provider":"cvelistv5","source":"CVE-2026-27902","relation":"self"},{"ecosystem":"NVD","package":"svelte:svelte","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.53.0"},{"fixed":"5.53.5"}]}],"fixed":["5.53.5"],"provider":"nvd","source":"CVE-2026-27902","relation":"self"},{"ecosystem":"npm","package":"svelte","purl":"pkg:npm/svelte","ranges":[{"type":"SEMVER","events":[{"introduced":"5.53.0"},{"fixed":"5.53.5"}]}],"fixed":["5.53.5"],"provider":"osv","source":"GHSA-qgvg-pr8v-6rr3","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Build of Podman Desktop - Tech Preview","cpe":"cpe:/a:redhat:podman_desktop:0","status":"affected","packages":["rhdesktop/rh-podman-desktop-ext-bootc-rhel10"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-27902"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"affected","packages":["rhoai/odh-dashboard-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2026-27902"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-27902","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-27902","license":"CC-BY-4.0","published_at":"2026-02-26T00:58:54.604Z","modified_at":"2026-02-26T18:51:39.142Z","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.","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","source":"CVE-2026-27902"}],"affected":[{"ecosystem":"CVE","package":"sveltejs/svelte","versions":[">= 5.53.0, < 5.53.5"],"provider":"cvelistv5","source":"CVE-2026-27902","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/sveltejs/svelte/security/advisories/GHSA-qgvg-pr8v-6rr3"},{"type":"WEB","url":"https://github.com/sveltejs/svelte/commit/0298e979371bb583855c9810db79a70a551d22b9"},{"type":"WEB","url":"https://github.com/sveltejs/svelte/releases/tag/svelte%405.53.5"}]},{"provider":"nvd","source_id":"CVE-2026-27902","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27902","severity":[],"affected":[{"ecosystem":"NVD","package":"svelte:svelte","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.53.0"},{"fixed":"5.53.5"}]}],"fixed":["5.53.5"],"provider":"nvd","source":"CVE-2026-27902","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-qgvg-pr8v-6rr3","relation":"self","url":"https://osv.dev/vulnerability/GHSA-qgvg-pr8v-6rr3","license":"CC-BY-4.0","published_at":"2026-02-26T22:25:45Z","modified_at":"2026-02-26T22:37:20.605129Z","summary":"Svelte: XSS via HTML Comment Injection in SSR Error Boundary Hydration Markers","details":"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`.","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","source":"GHSA-qgvg-pr8v-6rr3"}],"affected":[{"ecosystem":"npm","package":"svelte","purl":"pkg:npm/svelte","ranges":[{"type":"SEMVER","events":[{"introduced":"5.53.0"},{"fixed":"5.53.5"}]}],"fixed":["5.53.5"],"provider":"osv","source":"GHSA-qgvg-pr8v-6rr3","relation":"self"}],"product_status":[],"references":[{"type":"WEB","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":"WEB","url":"https://github.com/sveltejs/svelte/commit/0298e979371bb583855c9810db79a70a551d22b9"},{"type":"PACKAGE","url":"https://github.com/sveltejs/svelte"},{"type":"WEB","url":"https://github.com/sveltejs/svelte/releases/tag/svelte@5.53.5"}]},{"provider":"redhat-vex","source_id":"CVE-2026-27902","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-27902","license":"CC-BY-4.0","published_at":"2026-02-26T00:58:54.604Z","modified_at":"2026-03-16T08:31:24Z","summary":"svelte: Svelte: Cross-Site Scripting via unsanitized error output","details":"A cross-site scripting (XSS) vulnerability was found in Svelte’s server-side rendering (SSR) error handling. Error messages returned from the transformError function were not properly escaped before being embedded into HTML output within hydration markers. If an application returns attacker-controlled content through transformError, the content may be interpreted as HTML in the rendered page, resulting in HTML injection and potential execution of arbitrary JavaScript in a victim’s browser. Successful exploitation could allow an attacker to access sensitive information or perform actions in the context of the affected user.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","source":"CVE-2026-27902"},{"type":"Red Hat","score":"Moderate","source":"CVE-2026-27902"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Build of Podman Desktop - Tech Preview","cpe":"cpe:/a:redhat:podman_desktop:0","status":"affected","packages":["rhdesktop/rh-podman-desktop-ext-bootc-rhel10"],"package_count":1,"fixed":[],"advisories":[],"note":"Fix deferred","provider":"redhat-vex","source":"CVE-2026-27902"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"affected","packages":["rhoai/odh-dashboard-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2026-27902"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27902.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-27902"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2442917"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-27902"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27902"},{"type":"WEB","url":"https://github.com/sveltejs/svelte/commit/0298e979371bb583855c9810db79a70a551d22b9"},{"type":"WEB","url":"https://github.com/sveltejs/svelte/releases/tag/svelte%405.53.5"},{"type":"WEB","url":"https://github.com/sveltejs/svelte/security/advisories/GHSA-qgvg-pr8v-6rr3"}]}],"references":[{"type":"WEB","url":"https://github.com/sveltejs/svelte/security/advisories/GHSA-qgvg-pr8v-6rr3"},{"type":"WEB","url":"https://github.com/sveltejs/svelte/commit/0298e979371bb583855c9810db79a70a551d22b9"},{"type":"WEB","url":"https://github.com/sveltejs/svelte/releases/tag/svelte%405.53.5"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27902"},{"type":"PACKAGE","url":"https://github.com/sveltejs/svelte"},{"type":"WEB","url":"https://github.com/sveltejs/svelte/releases/tag/svelte@5.53.5"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-27902.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-27902"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2442917"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-27902"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-27902","url":"https://www.cve.org/CVERecord?id=CVE-2026-27902","license":"CC-BY-4.0","modified_at":"2026-02-26T18:51:39.142Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2026-27902","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27902","relation":"self"},{"provider":"osv","source_id":"GHSA-qgvg-pr8v-6rr3","url":"https://osv.dev/vulnerability/GHSA-qgvg-pr8v-6rr3","license":"CC-BY-4.0","modified_at":"2026-02-26T22:37:20.605129Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-27902","url":"https://access.redhat.com/security/cve/CVE-2026-27902","license":"CC-BY-4.0","modified_at":"2026-03-16T08:31:24Z","relation":"self"}]}
