Skip to main content

Telegram Desktop CVE-2026-94488

| EUVDEUVD-2026-84030 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-09-21 mitre GHSA-58p4-4g24-j8vp
8.3
CVSS 4.0 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious inline-button message
  2. Delivery
    Forward into victim's group
  3. Exploit
    Victim exports chat to HTML
  4. Execution
    Unsanitized button.text embedded in HTML
  5. Persist
    Victim opens HTML in browser
  6. Impact
    Script 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Telegram Desktop 4.15.1 <6.9.4

Affected Packages

euvd telegram_desktop fix: 6.9.4

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

Vendor (mitre) PRIMARY 8.3 HIGH
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
vuln.today AI 5.0 MEDIUM

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.

3.1 AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
High
Telegram Desktop is a very widely deployed consumer messaging client
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

62
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2019-10044 HIGH POC
8.8 Mar 25

Telegram Desktop before 1.5.12 on Windows, and the Telegram applications for Android, iOS, and Linux, is vulnerable to a

CVE-2026-107181 HIGH POC
8.6 Oct 07

One-click account takeover in Telegram Desktop before 7.2.9, where the Core::Sandbox inter-process communication layer f

CVE-2021-47793 HIGH POC
7.5 Jan 16

Telegram Desktop versions up to 2.9.2 is affected by allocation of resources without limits or throttling (CVSS 7.5).

CVE-2018-17231 HIGH POC
7.5 Sep 19

Telegram Desktop (aka tdesktop) 1.3.14 might allow attackers to cause a denial of service (assertion failure and applica

CVE-2018-17780 MEDIUM POC
6.5 Sep 29

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

CVE-2018-17613 CRITICAL
9.8 Sep 28

Telegram Desktop (aka tdesktop) 1.3.16 alpha, when "Use proxy" is enabled, sends credentials and application data in cle

CVE-2020-17448 HIGH
7.8 Aug 11

Telegram Desktop through 2.1.13 allows a spoofed file type to bypass the Dangerous File Type Execution protection mechan

CVE-2020-12474 MEDIUM
6.5 May 01

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

CVE-2016-10351 MEDIUM
5.5 May 01

Telegram Desktop 0.10.19 uses 0755 permissions for $HOME/.TelegramDesktop, which allows local users to obtain sensitive

CVE-2021-36769 MEDIUM
5.3 Jul 17

A reordering issue exists in Telegram before 7.8.1 for Android, Telegram before 7.8.3 for iOS, and Telegram Desktop befo

CVE-2020-25824 LOW
2.4 Oct 14

Telegram Desktop through 2.4.3 does not require passcode entry upon pushing the Export key within the Export Telegram Da

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy