Skip to content
Threat Feed
high advisory

Stored XSS in telegram-search via MessageList.vue

A stored cross-site scripting (XSS) vulnerability (CVE-2026-73031) in telegram-search allows remote attackers to execute arbitrary JavaScript by injecting unsanitized HTML into shared Telegram messages.

CVE search metadata

CVE search record: CVE-2026-73031. Severity: high. CVSS: 8.7. KEV: no. Product: telegram-search. Brief: Stored XSS in telegram-search via MessageList.vue. Brief link: https://feed.craftedsignal.io/briefs/2026-08-cve-2026-73031/

CVE-2026-73031 identifies a critical stored cross-site scripting (XSS) vulnerability within the telegram-search application. The flaw originates in the MessageList.vue component, specifically within the highlightKeyword function, which processes and renders message content using the Vue.js v-html directive without performing adequate HTML escaping or sanitization. This oversight permits an attacker to inject arbitrary HTML and JavaScript payloads into messages within a shared Telegram group. Because the application processes these messages for searching and viewing, the injected code is stored persistently and executes in the context of any user who views or performs a search operation that includes the malicious message. This is effectively a zero-click execution vector that poses a significant risk for session hijacking or unauthorized actions performed in the victim's browser session.

Impact

Successful exploitation allows remote attackers to execute arbitrary JavaScript in the browsers of legitimate users. This can lead to the exfiltration of session cookies, sensitive user data, or unauthorized actions performed on behalf of the victim. Given the nature of stored XSS in search and message-viewing components, any user interacting with the compromised group or search results is vulnerable, potentially affecting the entire user base of the affected telegram-search deployment.

Recommendation

Prioritize updating the telegram-search application to the latest version that implements proper HTML sanitization for the highlightKeyword function. Audit the codebase to ensure all instances using the v-html directive are coupled with a robust sanitization library like DOMPurify before rendering user-supplied content. Implement a Content Security Policy (CSP) that restricts script execution to trusted sources to mitigate the impact of potential XSS vulnerabilities.


Immediate actions

Patch telegram-search instances to version containing vulnerability fix for CVE-2026-73031

IT Operations 48h

Mitigations

Implement strict Content Security Policy (CSP) header to restrict inline script execution

immediate Security Engineering

CVE-2026-73031