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.
Published: 2026-08-21
Score: 8.2 High
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting when exporting Discord chat logs in HTML with markdown disabled
Action: Immediate Patch
AI Analysis

Impact

DiscordChatExporter allows malicious script code to be stored in several message fields such as message content, forwarded and referenced message content, embed title and description, and field names and values. When the exporter is instructed to produce an HTML file with markdown formatting turned off, these fields are rendered without HTML entity encoding. An attacker can supply forged text through a Discord webhook or bot that contains embedded JavaScript. After the vulnerable exporter writes the content to the HTML file, a local user who opens that file in a web browser triggers the execution of the script, enabling the attacker to read or modify the exported chat data through the page’s DOM.

Affected Systems

The issue affects all releases of Tyrrrz:DiscordChatExporter up to, but not including, version 2.47.2. Users running any earlier version and exporting with markdown disabled are exposed until they apply the update or change their export settings.

Risk and Exploitability

The CVSS score of 8.2 categorizes this vulnerability as high severity. No EPSS score is provided, and it is not listed in the CISA KEV catalog. The attack requires the victim to locally open the generated HTML file, making it a local stored XSS that can be exploited by an attacker controlling webhook or bot content. Successful exploitation grants the attacker the ability to read or alter the displayed chat export content.

Generated by OpenCVE AI on August 21, 2026 at 20:47 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade DiscordChatExporter to version 2.47.2 or later, which removes the unencoded rendering of Markdown content.
  • Disable markdown formatting when exporting HTML files until the patch is applied, or export with markdown enabled as a temporary workaround.
  • Restrict Discord webhook and bot permissions so that message, embed, and field fields cannot contain arbitrary HTML or script payloads.

Generated by OpenCVE AI on August 21, 2026 at 20:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 25 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 21 Aug 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Tyrrrz
Tyrrrz discordchatexporter
Vendors & Products Tyrrrz
Tyrrrz discordchatexporter

Fri, 21 Aug 2026 19:00:00 +0000

Type Values Removed Values Added
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.
Title DiscordChatExporter: Stored XSS in HTML export when markdown formatting is disabled
Weaknesses CWE-79
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'}


Subscriptions

Tyrrrz Discordchatexporter
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-25T17:31:36.280Z

Reserved: 2026-06-15T22:53:58.561Z

Link: CVE-2026-54682

cve-icon Vulnrichment

Updated: 2026-08-25T17:31:29.906Z

cve-icon NVD

Status : Received

Published: 2026-08-21T19:17:03.610

Modified: 2026-08-25T18:17:55.660

Link: CVE-2026-54682

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T21:14:58Z

Weaknesses
  • CWE-79

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