Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-54681— DiscordChatExporter: HTML attribute injection via unescaped emoji name in HTML export

Quick assessment

Affected
Tyrrrz DiscordChatExporter
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

DiscordChatExporter 将 Discord 聊天记录保存到文件中。在版本 2.47.2 之前, 中的 方法将 直接插入到 HTML 的 属性中,将 直接插入到 属性中,且未进行 HTML 实体编码。该问题影响所有 HTML 导出格式,无论 Markdown 设置如何。 Discord 当前对自定义 emoji 名称的验证通常会排除能破坏 HTML 属性的特殊字符,但经过篡改的离线输入数据、上游放松的验证规则,或其他未来的元数据源可能注入恶意的 HTML 属性。当用户打开受影响的导出文件时,可能导致跨

CVSS 4.1 · Medium EPSS 0.12% · P3

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter

Affected Version Matrix 1

VendorProduct Version RangeStatus
Tyrrrz DiscordChatExporter < 2.47.2 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-54681

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
DiscordChatExporter: HTML attribute injection via unescaped emoji name in HTML export
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
Tyrrrz DiscordChatExporter < 2.47.2 -

II. Public POCs for CVE-2026-54681

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-54681

登录查看更多情报信息。

Patches & Fixes for CVE-2026-54681 (2)

Vendor Advisories for CVE-2026-54681 (1)

Vendor Pages for CVE-2026-54681 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-54681

No comments yet


Leave a comment