Executive Summary
A Telegram Desktop flaw let a bot's message plant hidden JavaScript in chats exported to HTML; when the export was opened in a browser, the script could copy every message in the file to an attacker.
What Happened
A flaw in Telegram Desktop let a bot's message plant hidden JavaScript inside chats that users exported to HTML files, security researchers at ExPatch said in a writeup published on September 12. In Telegram, the message looked ordinary, with a link button, and the script ran only when someone opened the export file in a web browser. It could then copy every message in that file to
Affected Products
- Telegram Desktop
Vulnerability / Attack Technique
Script injection into HTML chat exports
Technical Mechanism
A message with an ordinary-looking link button carried hidden JavaScript that ran only in the HTML export, exfiltrating its contents.
AI Security Category
Not AI-specific
RealGround Analysis
A messaging app flaw with no AI component reported.
Recommended Controls
- Update Telegram Desktop
- Open chat exports in a sandboxed viewer
Related RealGround Service
Secure AI Agent Build · or start with the free AI Agent Security Scanner.
Sources
thehackernews.com: https://thehackernews.com/2026/09/telegram-desktop-flaw-lets-hidden.html
Summary and analysis written by RealGround from the source above; last updated 2026-10-17.
