Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-54681: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Tyrrrz DiscordChatExporter

0
Medium
VulnerabilityCVE-2026-54681cvecve-2026-54681cwe-79
Published: 08/21/2026 (08/21/2026, 18:41:45 UTC)
Source: CVE Database V5
Vendor/Project: Tyrrrz
Product: 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

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected software

GitHub Actionsmore threats →ai
tyrrrz/DiscordChatExporter
pkg:github/tyrrrz/DiscordChatExporter
Affected versions
<2.47.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/21/2026, 19:07:43 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses