Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-27901: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in sveltejs svelte

0
Medium
VulnerabilityCVE-2026-27901cvecve-2026-27901cwe-79
Published: Thu Feb 26 2026 (02/26/2026, 00:57:40 UTC)
Source: CVE Database V5
Vendor/Project: sveltejs
Product: svelte

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 03/05/2026, 11:40:36 UTC

Technical Analysis

CVE-2026-27901 is a Cross-Site Scripting (XSS) vulnerability identified in the Svelte JavaScript framework, specifically affecting versions prior to 5.53.5. The vulnerability stems from improper neutralization of input during web page generation, classified under CWE-79. In Svelte, the bindings bind:innerText and bind:textContent on contenteditable elements did not properly escape the initial values when rendered on the server side. This flaw allows an attacker to inject malicious HTML or JavaScript code if untrusted data is used as the initial binding value. The vulnerability can lead to HTML injection and XSS attacks, which can compromise user sessions, steal sensitive information, or perform actions on behalf of users. The CVSS v4.0 score is 5.3 (medium severity), reflecting network attack vector, high attack complexity, partial user interaction, and limited confidentiality impact. Exploitation does not require authentication but does require user interaction, and the vulnerability affects the confidentiality and integrity of affected applications. The issue is resolved in Svelte version 5.53.5, which properly escapes the bound content to prevent injection. No known exploits are currently reported in the wild.

Potential Impact

This vulnerability can impact organizations that use Svelte versions prior to 5.53.5 in their web applications, particularly those that bind untrusted or user-generated content to contenteditable elements using bind:innerText or bind:textContent. Successful exploitation could allow attackers to execute arbitrary scripts in the context of the victim’s browser, leading to session hijacking, credential theft, or unauthorized actions. While the attack complexity is high and requires user interaction, the widespread adoption of Svelte in modern web development means many applications could be exposed. The impact is primarily on confidentiality and integrity, with limited availability impact. Organizations with public-facing web applications or those handling sensitive user data are at higher risk. The vulnerability could also be leveraged as part of multi-stage attacks or combined with social engineering to increase effectiveness.

Mitigation Recommendations

Organizations should immediately upgrade all Svelte dependencies to version 5.53.5 or later to ensure the vulnerability is patched. Review all uses of bind:innerText and bind:textContent on contenteditable elements, especially where untrusted data is bound, and implement additional input validation and sanitization on the server side. Employ Content Security Policy (CSP) headers to restrict script execution and reduce the impact of potential XSS attacks. Conduct thorough code audits and penetration testing focused on client-side bindings and dynamic content rendering. Educate developers on secure coding practices related to data binding and escaping in reactive frameworks. Monitor application logs and user reports for suspicious activity indicative of attempted XSS exploitation. Consider implementing runtime application self-protection (RASP) solutions to detect and block injection attempts in real time.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-02-24T15:19:29.718Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 699fa148b7ef31ef0b7796a9

Added to database: 2/26/2026, 1:26:32 AM

Last enriched: 3/5/2026, 11:40:36 AM

Last updated: 4/11/2026, 10:43:28 PM

Views: 91

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses