CVE-2026-54681: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Tyrrrz DiscordChatExporter
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.
AI Analysis
Technical Summary
DiscordChatExporter prior to version 2.47.2 contains an XSS vulnerability due to improper neutralization of input during web page generation. Specifically, the VisitEmojiAsync method interpolates emoji.Name into the alt attribute and emoji.Code into the title attribute without HTML entity encoding. Although Discord's emoji name validation normally excludes attribute-breaking characters, tampered offline input or relaxed upstream validation can allow injection of HTML attributes and script execution when a user opens the exported HTML file. This vulnerability affects HTML exports regardless of markdown settings and is resolved in version 2.47.2.
Potential Impact
An attacker can craft or tamper with emoji metadata to inject malicious scripts into exported HTML chat logs. When a user opens such a manipulated export, the script can execute in the context of the user's browser, potentially leading to information disclosure or other client-side impacts. The CVSS score of 4.1 reflects a medium severity with local attack vector, high attack complexity, no privileges required, and user interaction needed.
Mitigation Recommendations
Upgrade DiscordChatExporter to version 2.47.2 or later where this issue is fixed. Until then, avoid opening exported HTML files from untrusted or tampered sources. No official patch advisory was provided, but the fix is included in version 2.47.2.
CVE-2026-54681: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Tyrrrz DiscordChatExporter
Description
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.
CVSS v3.1
Score 4.1medium
Affected software
pkg:github/tyrrrz/DiscordChatExporterRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
DiscordChatExporter prior to version 2.47.2 contains an XSS vulnerability due to improper neutralization of input during web page generation. Specifically, the VisitEmojiAsync method interpolates emoji.Name into the alt attribute and emoji.Code into the title attribute without HTML entity encoding. Although Discord's emoji name validation normally excludes attribute-breaking characters, tampered offline input or relaxed upstream validation can allow injection of HTML attributes and script execution when a user opens the exported HTML file. This vulnerability affects HTML exports regardless of markdown settings and is resolved in version 2.47.2.
Potential Impact
An attacker can craft or tamper with emoji metadata to inject malicious scripts into exported HTML chat logs. When a user opens such a manipulated export, the script can execute in the context of the user's browser, potentially leading to information disclosure or other client-side impacts. The CVSS score of 4.1 reflects a medium severity with local attack vector, high attack complexity, no privileges required, and user interaction needed.
Mitigation Recommendations
Upgrade DiscordChatExporter to version 2.47.2 or later where this issue is fixed. Until then, avoid opening exported HTML files from untrusted or tampered sources. No official patch advisory was provided, but the fix is included in version 2.47.2.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-15T22:53:58.561Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a889e77acd9273b498fc1f9
Added to database: 08/21/2026, 18:52:39 UTC
Last enriched: 08/21/2026, 19:07:43 UTC
Last updated: 08/21/2026, 19:30:05 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.