Skip to main content

DiscordChatExporter CVE-2026-54682

| EUVDEUVD-2026-64047 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-08-21 GitHub_M
8.2
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Control Discord bot or webhook
  2. Delivery
    Post XSS payload in message or embed field
  3. Exploit
    Victim exports channel with markdown formatting disabled
  4. Execution
    Victim opens HTML export in browser
  5. Persist
    Unencoded script executes in browser file context
  6. Impact
    Exfiltrate 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

DiscordChatExporter < 2.47.2

Affected Packages

euvd discordchatexporter fix: 2.47.2

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

Vendor (GitHub_M) PRIMARY 8.2 HIGH
AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
vuln.today AI 8.2 HIGH

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.

3.1 AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
4.0 AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch available
Aug 21, 2026 - 19:02 EUVD
CVE Published
Aug 21, 2026 - 18:40 cve.org
HIGH 8.2

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Low
niche open-source Discord channel archiving utility
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy