DiscordChatExporter, prior to version 2.47.2, saves Discord chat logs to a file and had a vulnerability allowing for the execution of attacker-controlled scripts when exporting chat logs with markdown formatting disabled. 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. Users of DiscordChatExporter should prioritize updating to version 2.47.2 or later to mitigate this vulnerability. Evidence limits suggest that further review of chat logs and user exports is necessary to ensure the vulnerability is fully mitigated. The CVE record indicates that the vulnerability is fixed in version 2.47.2. It is recommended to review compensating controls for exposed systems while remediation is scheduled and verified.
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. The CVE record was published on 2026-08-21T19:17:03.457Z and has not been modified since then. Users of DiscordChatExporter, especially those who export chat logs in HTML format, should be aware of this vulnerability and take steps to ensure their usage is secure. Affected product deployments should be reviewed for exposure, and owners should be assigned for follow-up. Official advisories or CVE records should be consulted to validate affected scope, severity, and vendor guidance.