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

CVE-2026-27901: Svelte vulnerable to XSS during SSR with contenteditable `bind:innerText` and `bind:textContent`

February 26, 2026

The contents of bind:innerText and bind:textContent on contenteditable elements were not properly escaped. This could enable HTML injection and Cross-site Scripting (XSS) if rendering untrusted data as the binding’s initial value on the server.

References

  • github.com/advisories/GHSA-phwv-c562-gvmh
  • github.com/sveltejs/svelte
  • github.com/sveltejs/svelte/commit/0df5abcae223058ceb95491470372065fb87951d
  • github.com/sveltejs/svelte/releases/tag/svelte@5.53.5
  • github.com/sveltejs/svelte/security/advisories/GHSA-phwv-c562-gvmh
  • nvd.nist.gov/vuln/detail/CVE-2026-27901

Code Behaviors & Features

Detect and mitigate CVE-2026-27901 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 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-27901.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:58 +0000.