Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply tampered export input with malicious emoji name
-
DeliveryVictim generates HTML export using vulnerable DiscordChatExporter
-
ExploitUnencoded emoji.Name breaks out of alt attribute context
-
ExecutionVictim opens HTML export in browser
-
ImpactInjected script executes in browser session
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 | Exploitation requires that a victim use DiscordChatExporter prior to 2.47.2 to generate an HTML export from input containing emoji with attribute-breaking characters in their Name or Code fields. Under standard Discord API conditions this is currently prevented by Discord's server-side emoji name validation, which restricts the character set. Exploitation therefore depends on one of three preconditions: (1) the attacker supplies or tampers with an offline export source file before it is processed by DiscordChatExporter, (2) Discord relaxes its upstream emoji name validation in the future, or (3) a new metadata source is integrated that does not apply equivalent sanitization. After the malicious export file is generated, a second precondition applies: the victim must actively open the resulting HTML file in a web browser (UI:R). The vulnerability does not affect plaintext or JSON export modes, only HTML output. Exploitation is further limited to DiscordChatExporter installations running versions below 2.47.2. |
| Impact | The provided CVSS 3.1 score of 4.1 with vector AV:L/AC:H/PR:N/UI:R/S:C reflects the constrained real-world attack path accurately. The local attack vector (AV:L) captures that exploitation depends on a tampered export source file or modified input rather than direct network exploitation. High complexity (AC:H) reflects that Discord's live emoji name validation currently prevents attribute-breaking characters from appearing in standard exports - an attacker must circumvent this through offline tampering, a relaxed Discord API change, or an alternative future metadata source. The Scope:Changed (S:C) metric is significant: although the initial vector is local file processing, successful exploitation escalates to script execution in the victim's browser, crossing a security boundary. No EPSS data was provided in the intelligence feed, and the vulnerability is not listed in CISA KEV, indicating no confirmed active exploitation. Given the niche deployment of DiscordChatExporter, the high complexity threshold, and the required user interaction (opening the HTML file), real-world risk is low despite the scope change. The primary risk scenario is a targeted social engineering attack distributing a crafted export archive. |
| Exploit ScenarioDerived | An attacker crafts a Discord chat export source file or intercepts/replaces an existing export file, injecting an emoji entry whose Name field contains an attribute-breaking payload such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 21, 2026
Stored XSS in DiscordChatExporter's HTML export engine allows script injection via maliciously crafted emoji metadata in chat logs prior to version 2.47.2. The VisitEmojiAsync method in HtmlMarkdownVisitor.cs interpolates emoji.Name into HTML alt attributes and emoji.Code into title attributes without HTML entity encoding, creating an injection point that executes in the victim's browser when they open the exported HTML file. Exploitation requires tampered offline input or a future relaxation of Discord's server-side emoji name validation; no public exploit or active exploitation has been identified at time of analysis.
RemediationAI
Upgrade to DiscordChatExporter version 2.47.2 or later, available at https://github.com/Tyrrrz/DiscordChatExporter/releases/tag/2.47.2. This release incorporates the fix from PR #1544 (commit f4d1e630f7f27120c3be4320d92cc8b932e78688), which adds HtmlEncode() calls to all unencoded interpolation sites in HtmlMarkdownVisitor.cs, including emoji.Name, emoji.Code, the asset URL, and the code block language identifier. For users unable to upgrade immediately, a practical compensating control is to avoid opening HTML exports generated from untrusted or externally-sourced export files in a browser; plaintext or JSON export formats are not affected by this vulnerability and can be used as a safe alternative until the patch is applied. Opening HTML exports in a sandboxed environment or browser profile with JavaScript disabled would also prevent script execution but may degrade export rendering.
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 an open-source .NET tool that converts Discord chat history into structured HTML, plaintext, or JSON exports. The vulnerability is a CWE-79 (Improper Neutralization of Input During Web Page Generation) instance rooted in C
string interpolation of emoji metadata directly into HTML attribute values inside HtmlMarkdownVisitor.cs. Specifically, the VisitEmojiAsync method constructed img tags with alt and title attributes populated from raw emoji.Name and emoji.Code strings with no HtmlEncode() call, allowing attribute-breaking characters such as quote marks and angle brackets to escape the attribute context. The PR #1544 fix confirms the pattern: HtmlEncode() was added to emoji.Name, emoji.Code, and the resolved asset URL, as well as to the multiline code block language identifier, suggesting a broader class of unencoded output existed in the exporter's HTML generation layer.
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:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Local vector because exploitation requires tampered local input files; AC:H reflects the precondition that Discord's current validation must be bypassed; S:C for browser script execution crossing the security boundary.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
DiscordChatExporter saves Discord chat logs to a file. Prior to 2.47.2, the VisitEmojiAsync method in DiscordChatExporter.Core/Exporting/HtmlMarkdownVisitor.cs interpolates emoji.Name into the alt attribute and emoji.Code into the title attribute without HTML entity encoding. This affects HTML exports regardless of the markdown setting. Discord's current custom emoji name validation normally excludes attribute-breaking characters, but tampered offline input, a relaxed upstream validation rule, or another future metadata source can inject an HTML attribute and execute script when a user opens the export. This issue is fixed in version 2.47.2.
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-64048
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB