8.2high
DiscordChatExporter: Stored XSS in HTML export when markdown formatting is disabled
- Severity
- 8.2high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.14% (higher than 3% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
DiscordChatExporter saves Discord chat logs to a file. Prior to 2.47.2, HTML exports generated with markdown formatting disabled pass attacker-controlled content through FormatMarkdownAsync and FormatEmbedMarkdownAsync in DiscordChatExporter.Core/Exporting/MessageGroupTemplate.cshtml and render it without HTML entity encoding. The affected fields include message.Content, message.ForwardedMessage.Content, message.ReferencedMessage.Content, embed.Title, embed.Description, field.Name, and field.Value. A Discord webhook or bot can store a script payload in these fields, and the payload executes when a user exports the channel with markdown formatting disabled and opens the resulting HTML, allowing the script to read the export or alter its displayed content. This issue is fixed in version 2.47.2.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Tyrrrz DiscordChatExporter | < 2.47.2 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
DiscordChatExporter saves Discord chat logs to a file. Prior to 2.47.2, HTML exports generated with markdown formatting disabled pass attacker-controlled content through FormatMarkdownAsync and FormatEmbedMarkdownAsync in DiscordChatExporter.Core/Exporting/MessageGroupTemplate.cshtml and render it without HTML entity encoding. The affected fields include message.Content, message.ForwardedMessage.Content, message.ReferencedMessage.Content, embed.Title, embed.Description, field.Name, and field.Value. A Discord webhook or bot can store a script payload in these fields, and the payload executes when a user exports the channel with markdown formatting disabled and opens the resulting HTML, allowing the script to read the export or alter its displayed content. This issue is fixed in version 2.47.2.
NVD (es)
DiscordChatExporter guarda los registros de chat de Discord en un archivo. Antes de la versión 2.47.2, las exportaciones HTML generadas con el formato markdown deshabilitado pasan contenido controlado por el atacante a través de FormatMarkdownAsync y FormatEmbedMarkdownAsync en DiscordChatExporter.Core/Exporting/MessageGroupTemplate.cshtml y lo renderizan sin codificación de entidades HTML. Los campos afectados incluyen message.Content, message.ForwardedMessage.Content, message.ReferencedMessage.Content, embed.Title, embed.Description, field.Name y field.Value. Un webhook o bot de Discord puede almacenar una carga útil de script en estos campos, y la carga útil se ejecuta cuando un usuario exporta el canal con el formato markdown deshabilitado y abre el HTML resultante, permitiendo que el script lea la exportación o altere su contenido mostrado. Este problema está solucionado en la versión 2.47.2.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-54682 changed 2026-08-25 | CVE Terms of Use |
| NVD | CVE-2026-54682 changed 2026-10-14 | Public domain |