Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessControl Discord bot or webhook
-
DeliveryPost XSS payload in message or embed field
-
ExploitVictim exports channel with markdown formatting disabled
-
ExecutionVictim opens HTML export in browser
-
PersistUnencoded script executes in browser file context
-
ImpactExfiltrate full chat log contents to attacker endpoint
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 | Three specific conditions must all be met: (1) the attacker must control a Discord bot or webhook with the ability to post messages or populate embed fields in the target channel; (2) the victim must export that channel using DiscordChatExporter with the markdown formatting option explicitly disabled - the markdown-enabled export path routes through HtmlMarkdownVisitor which performs its own encoding and is not affected by this flaw; (3) the victim must open the resulting HTML export file in a web browser. Exploitation is further limited to DiscordChatExporter versions prior to 2.47.2. The requirement for a specific export mode setting (markdown disabled) and local file open action by the victim limits mass exploitation, but the attack is feasible wherever channel archiving workflows process content from third-party or public bot sources. |
| Impact | The CVSS 8.2 score reflects the scope change and dual C:H/I:H impact, but the real-world attack surface is substantially narrowed by the exploitation conditions: the victim must both use the markdown-disabled export mode and open the resulting HTML file in a browser. The attack vector is AV:L because the payload triggers in a locally opened file, not via a network-reachable service. There is no EPSS score or KEV entry in the provided data, and no evidence of in-the-wild exploitation. The practical threat is highest in environments where DiscordChatExporter is used to archive channels that accept content from third-party bots or public webhooks - even a small internal IT team that regularly exports Discord audit logs for compliance review should treat upgrade as urgent given the low effort required to plant a payload. The publicly disclosed advisory and patch diff provide sufficient information for a motivated attacker to construct an exploit, modestly elevating urgency despite the absence of a known POC. |
| Exploit ScenarioDerived | An attacker controlling a Discord bot or webhook with posting access to a target channel embeds an XSS payload such as a script tag in a message body or embed title. When a user exports that channel using DiscordChatExporter with markdown formatting disabled and opens the resulting HTML file in a browser, the unencoded payload executes, enabling the script to read all exported chat content from the DOM and transmit it to an attacker-controlled endpoint. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 21, 2026
Stored cross-site scripting in DiscordChatExporter prior to 2.47.2 allows a Discord bot or webhook operator to plant script payloads in message content or embed fields that execute in a victim's browser when the channel is exported with markdown formatting disabled. Affected fields include message body, forwarded and referenced message content, embed titles, descriptions, and field name/value pairs - all rendered without HTML entity encoding in the vulnerable code path. The issue is fixed in version 2.47.2, confirmed by GitHub security advisory GHSA-8qrv-mmch-fr9c; no public exploit code or active exploitation has been identified at time of analysis.
RemediationAI
Upgrade to DiscordChatExporter 2.47.2 or later, available at https://github.com/Tyrrrz/DiscordChatExporter/releases/tag/2.47.2; the fix is confirmed by commit 5632d6c3867d2f79cba9578056c98caee4377c1b and PR #1545. As a short-term workaround for users unable to upgrade immediately, keeping markdown formatting enabled during export avoids the vulnerable code path entirely, since the markdown-enabled branch routes through HtmlMarkdownVisitor which performs its own encoding. Additionally, users should refrain from opening HTML exports in a browser when the source channel contains messages from untrusted bots or webhooks until patching is complete. Note that the workaround of using markdown-enabled exports may alter the visual formatting of the output.
Affected VersionsENISA
Affected Packages
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
DiscordChatExporter (CPE: cpe:2.3:a:tyrrrz:discordchatexporter:*:*:*:*:*:*:*:*) is a .NET application that renders chat logs into HTML via a Razor template (MessageGroupTemplate.cshtml). CWE-79 (Improper Neutralization of Input During Web Page Generation) applies: when markdown formatting is disabled, the helper functions FormatMarkdownAsync and FormatEmbedMarkdownAsync previously returned raw strings, and the Razor template rendered them with @Html.Raw(), deliberately bypassing Razor's automatic HTML entity escaping. The PR #1545 diff confirms the root cause - both helpers were changed to return IEncodedContent (RazorBlade), and the markdown-disabled branch now calls Html.Raw(Html.Encode(markdown)), encoding special characters before marking the result safe for output. The scope change (S:C in the CVSS vector) reflects that injected script executes in the browser context, not the tool process itself.
Know when Discordchatexporter 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
AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
AV:L because payload fires when a local HTML file is opened; PR:N because the attacker needs no privileges on the victim system, only Discord posting access; S:C because script crosses into browser context.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
DiscordChatExporter versions prior to 2.47.2 contain a stored cross-site scripting vulnerability that allows attackers with Discord bot or webhook access to plant malicious code in exported channel files. When users access these exports in a browser, the code executes and can compromise user credentials or enable account takeover. Organizations using DiscordChatExporter to archive communications face exposure if archives are accessed or redistributed.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-64047
NVD
CVE.org
EPSS
GitHub
Exploit-DB