Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious inline-button message
-
DeliveryForward into victim's group
-
ExploitVictim exports chat to HTML
-
ExecutionUnsanitized button.text embedded in HTML
-
PersistVictim opens HTML in browser
-
ImpactScript executes, exfiltrates exported chat data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation is gated on multiple specific preconditions. (1) The victim must actively use Telegram Desktop's HTML chat-export feature - the flaw cannot trigger otherwise. (2) The malicious payload must reach the exported chat: an attacker-crafted message containing an inline keyboard button with script in its text must be forwarded into a group where the victim is a member (notably, the original message author does NOT need to be a group member, which broadens delivery). (3) The victim must open the generated HTML file in a browser to execute the payload. These local, user-interaction requirements (UI:A/AV:L) are the primary limiting factors; there is no remote unauthenticated code path against a default Telegram Desktop install. Affected: Telegram Desktop before 6.9.4 (fixed stable 7.0.1). |
| Impact | The vendor CVSS 4.0 vector (CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N, 8.3 High) captures the core of this flaw accurately in structure but is arguably inflated in impact. The vector correctly encodes that exploitation is NOT a purely remote drive-by: AV:L and UI:A (Active user interaction) reflect that the victim must locally invoke the HTML export feature and open the resulting file. A publicly available exploit exists (expatch.com writeup plus The Hacker News coverage), which raises practical concern, but there is no CISA KEV listing and no EPSS score supplied - so this is 'publicly available exploit code exists,' NOT confirmed active exploitation. The main tension is impact: the vendor rates confidentiality and integrity High (VC:H/VI:H), but the payload executes inside a locally-opened HTML file (file:// origin), where modern browsers heavily sandbox local-to-local and network access; realistic impact is closer to Low/Low (theft of the exported chat contents and limited script actions) rather than full system compromise. This is a real, well-documented issue worth patching, but it is a multi-precondition, victim-gated XSS rather than an internet-facing wormable bug - its raw 8.3 overstates day-to-day urgency for most deployments. |
| Exploit ScenarioDerived | An attacker crafts a Telegram message containing an inline keyboard button whose text embeds a malicious script payload, and gets it forwarded into a group by any member (the original author need not be in the group). A victim who is a group member later uses Telegram Desktop's 'Export chat history' as HTML; when they open the generated HTML file in a browser, the unsanitized button text executes as JavaScript in the file's context. A public write-up and exploit are available. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 21, 2026
Telegram Desktop before 6.9.4 fails to escape inline-keyboard button text when a chat is exported to HTML, so attacker-controlled button captions are written verbatim into the generated file and execute as script when the victim opens that HTML in a browser. Exploitation is tightly gated: the victim must have used the HTML export feature, must have an attacker-crafted message forwarded into a group they belong to (the original author does not need to be a group member), and must then open the resulting HTML file locally. Publicly available exploit code exists (an expatch.com writeup), but there is no confirmed active exploitation (not in CISA KEV); the vendor scores it 8.3 High under CVSS 4.0, while an independent reassessment places it lower as a user-interaction-gated, scope-changed XSS with limited confidentiality and integrity impact (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
RemediationAI
Vendor-released patch: upgrade Telegram Desktop to 6.9.4 or later, and preferably to the first fixed stable release 7.0.1, available from https://github.com/telegramdesktop/tdesktop/releases/tag/v6.9.4; the code-level fix is visible in commits 8457d13aa795fadf99c955d2a04f00ebc3c59df9 and 52c779bffa8dde3c5c09826add2607328fae0924, which SerializeString-escape the button text and escape backslash/single-quote characters in the ShowTextCopied() script literal. Until upgrading, the effective workaround is to stop using the HTML export format entirely and export chats as JSON or plain text instead - the trade-off being loss of the formatted, browser-viewable archive. If an HTML export has already been produced from a chat containing forwarded messages with inline buttons, treat the resulting .html file as untrusted: do not open it in a browser, and regenerate the archive after patching. There is no server-side or network control to block this, since the payload is simply message content delivered through normal Telegram message flow; restricting who may forward messages into sensitive groups is a partial, high-friction mitigating control.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a classic CWE-79 improper-neutralization-of-input-during-web-page-generation issue inside Telegram Desktop's HTML export writer. In Telegram/SourceFiles/export/output/export_output_html.cpp, HtmlWriter::Wrap::pushMessage emitted button.text.toUtf8() directly into the output buffer, and separately interpolated message content into an inline JavaScript call (return ShowTextCopied('<content>');). Because inline-keyboard button text is attacker-controllable message data that survives forwarding, the raw bytes landed in two distinct sinks: an HTML/attribute context and a JavaScript single-quoted string context, allowing tag injection and JS string-breakout respectively. The upstream fix (commit 8457d13) wraps the button text with SerializeString(), which HTML-escapes it, and additionally escapes backslashes and single quotes when building the ShowTextCopied() script literal. Note that the exported artifact is a local file opened via file:// (or similar), so the script executes in that document's origin rather than on a telegram.org domain - which limits direct session-token theft but still permits local-file-context script execution and any actions reachable from it. The CPE cpe:2.3:a:telegram:telegram_desktop:*:*:*:*:*:*:*:* confirms the affected component is the Telegram Desktop client across all pre-6.9.4 versions.
Know when Telegram Desktop gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Trigger is local HTML export + opening the file (AV:L, UI:R); no attacker privilege on victim system (PR:N); XSS crosses into the browser (S:C) but file:// context limits impact to C:L/I:L.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
DescriptionCVE.org
Telegram Desktop before 6.9.4 allows XSS in the HTML exporter. (The first fixed stable version is 7.0.1.) This occurs in button.text.toUtf8 in export_output_html.cpp. Exploitation cannot occur unless HTML export was used by a victim. However, the exploit payload can be exported if a message were forwarded into a group by a member (it is not necessary for the message author to be a member of a group).
Technical POC Analysis
CWE-79 (improper neutralization of input during web page generation), stored/cross-site scripting, in Telegram Desktop's HTML exporter.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Telegram Desktop, a widely used messaging application, is affected by a high-severity vulnerability (CVE-2026-94488) that allows attackers to execute malicious scripts when a user exports a chat containing specially crafted messages to HTML and opens the resulting file. Although exploitation requires specific user actions, publicly available exploit code exists, and successful attacks could lead to credential theft or data exfiltration from affected endpoints. Leadership should prioritize patching to version 6.9.4 to protect organizational communications and data.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Telegram Desktop
View allTelegram Desktop before 1.5.12 on Windows, and the Telegram applications for Android, iOS, and Linux, is vulnerable to a
One-click account takeover in Telegram Desktop before 7.2.9, where the Core::Sandbox inter-process communication layer f
Telegram Desktop versions up to 2.9.2 is affected by allocation of resources without limits or throttling (CVSS 7.5).
Telegram Desktop (aka tdesktop) 1.3.14 might allow attackers to cause a denial of service (assertion failure and applica
Telegram Desktop (aka tdesktop) 1.3.14, and Telegram 3.3.0.0 WP8.1 on Windows, leaks end-user public and private IP addr
Telegram Desktop (aka tdesktop) 1.3.16 alpha, when "Use proxy" is enabled, sends credentials and application data in cle
Telegram Desktop through 2.1.13 allows a spoofed file type to bypass the Dangerous File Type Execution protection mechan
Telegram Desktop through 2.0.1, Telegram through 6.0.1 for Android, and Telegram through 6.0.1 for iOS allow an IDN Homo
Telegram Desktop 0.10.19 uses 0755 permissions for $HOME/.TelegramDesktop, which allows local users to obtain sensitive
A reordering issue exists in Telegram before 7.8.1 for Android, Telegram before 7.8.3 for iOS, and Telegram Desktop befo
Telegram Desktop through 2.4.3 does not require passcode entry upon pushing the Export key within the Export Telegram Da
EUVD-2026-84030
GHSA-58p4-4g24-j8vp
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB