Skip to main content

DiscordChatExporter EUVDEUVD-2026-64048

| CVE-2026-54681 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-08-21 GitHub_M
4.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Supply tampered export input with malicious emoji name
  2. Delivery
    Victim generates HTML export using vulnerable DiscordChatExporter
  3. Exploit
    Unencoded emoji.Name breaks out of alt attribute context
  4. Execution
    Victim opens HTML export in browser
  5. Impact
    Injected 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 " onmouseover="alert(document.cookie). When a victim uses a vulnerable version of DiscordChatExporter to generate an HTML export from this tampered input and subsequently opens the resulting HTML file in their browser, the injected event handler executes in the browser's context, potentially stealing session data from other open tabs or performing browser-based actions on the victim's behalf.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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 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

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

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

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.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

1
Patch available
Aug 21, 2026 - 19:02 EUVD

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

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Low
niche open-source Discord chat log archiving tool
Data Quality
6 sources
Confidence: High

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

20
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +20
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