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

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2026-02-26T00:57:40.269Z
- Modified: 2026-09-10T03:50:35.484Z
- Also known as: GHSA-phwv-c562-gvmh
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Svelte performance oriented web framework. Prior to version 5.53.5, 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. Version 5.53.5 fixes the issue.

(As written by CVE List.)

## Affected

- sveltejs svelte: < 5.53.5
- svelte (npm): before 5.53.5
- svelte svelte: before 5.53.5; 5.53.5

## Every score

- GitHub_M: CVSS:4.0 5.3 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/sveltejs/svelte/security/advisories/GHSA-phwv-c562-gvmh> (vendor-advisory, web)
- <https://github.com/sveltejs/svelte/commit/0df5abcae223058ceb95491470372065fb87951d> (patch, web)
- <https://github.com/sveltejs/svelte/releases/tag/svelte%405.53.5> (release-notes)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27901> (advisory)
- <https://github.com/sveltejs/svelte> (package)
- <https://github.com/sveltejs/svelte/releases/tag/svelte@5.53.5> (web)

## Sources

- CVE List: [CVE-2026-27901](https://www.cve.org/CVERecord?id=CVE-2026-27901), CVE Terms of Use, modified 2026-02-26
- GitHub Advisory Database: [GHSA-phwv-c562-gvmh](https://github.com/advisories/GHSA-phwv-c562-gvmh), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-27901](https://nvd.nist.gov/vuln/detail/CVE-2026-27901), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-27901 · Whole record: https://cve.day/CVE-2026-27901.json · Rebuilt by cve.day 2026-11-25T22:59:14.934Z
