CVE-2026-94488

HTML Export XSS in Telegram Desktop

Published Sep 21, 2026 CVSS 4.0 · 8.3 High EPSS < 1% KEV · Not listed
Description
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).

Analysis

AI-generated

Technical impact

Telegram Desktop contains an input‑validation flaw in its HTML export function that allows an attacker to inject malicious JavaScript into an exported file. The vulnerability resides in the conversion of button text to UTF‑8 within export_output_html.cpp and satisfies CWE‑79. When a message containing attacker‑controlled script is processed by the exporter, the resulting HTML file includes executable code that can run when the file is opened in a browser or any application that renders HTML, potentially exposing the victim’s credentials or enabling other local attacks.

Affected Systems

Telegram Desktop releases older than 7.0.1 are affected, including all 6.x versions up through 6.9.4 and any earlier branches. The first stable release to contain the fix is version 7.0.1, which removes the vulnerable logic. Users on the 6.x line should patch to at least 7.0.1 to eliminate the flaw.

Risk and Exploitability

The CVSS score of 8.3 indicates a high‑severity flaw, yet exploitation requires the victim to export a chat that contains malicious content. Attackers can disseminate the payload by forwarding a crafted message into a group, after which a group member can export the chat to a local HTML file. Because the trigger is a local export action and no network‑only vector exists, the risk of widespread deployment is limited, but the vulnerability remains a serious threat for users who rely on the export feature. The EPSS score is unavailable and the flaw is not listed in the CISA KEV catalog, so organisations should treat it as a timely CVE and update promptly if they use the exporter feature.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Telegram Desktop 7.0.1 or later.
  • Avoid using the HTML export feature for chats that may contain malicious content, particularly forwarded messages from unknown or compromised users.
  • If exported HTML must be viewed, open it in a sandboxed or isolated environment and ensure the browser enforces strict content‑security policies.

Generated by OpenCVE AI on September 21, 2026 at 18:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title HTML Export XSS in Telegram Desktop
Type Values Removed Values Added
First Time appeared Telegram desktop
Vendors & Products Telegram desktop
Type Values Removed Values Added
Description 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).
First Time appeared Telegram
Telegram telegram Desktop
Weaknesses CWE-79
CPEs cpe:2.3:a:telegram:telegram_desktop:*:*:*:*:*:*:*:*
Vendors & Products Telegram
Telegram telegram Desktop
References
Metrics cvssV3_1

{'score': 8.2, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N'}

cvssV4_0

{'score': 8.3, 'vector': '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'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Sep 21, 2026, 5:51 PM
Reserved
Sep 21, 2026, 5:29 PM
Status
Awaiting Analysis
Published
Sep 21, 2026, 6:17 PM
Modified
Sep 22, 2026, 7:56 PM