Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. svelte
  4. ›
  5. CVE-2026-27902

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

February 26, 2026

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.

References

  • github.com/advisories/GHSA-qgvg-pr8v-6rr3
  • github.com/sveltejs/svelte
  • github.com/sveltejs/svelte/commit/0298e979371bb583855c9810db79a70a551d22b9
  • github.com/sveltejs/svelte/releases/tag/svelte@5.53.5
  • github.com/sveltejs/svelte/security/advisories/GHSA-qgvg-pr8v-6rr3
  • nvd.nist.gov/vuln/detail/CVE-2026-27902

Code Behaviors & Features

Detect and mitigate CVE-2026-27902 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.53.0 before 5.53.5

Fixed versions

  • 5.53.5

Solution

Upgrade to version 5.53.5 or above.

Impact 8 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/svelte/CVE-2026-27902.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:18:01 +0000.