# CVE-2026-54682: DiscordChatExporter: Stored XSS in HTML export when markdown formatting is disabled

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-21T18:40:05.196Z
- Modified: 2026-10-14T19:10:00.297Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

DiscordChatExporter saves Discord chat logs to a file. Prior to 2.47.2, HTML exports generated with markdown formatting disabled pass attacker-controlled content through FormatMarkdownAsync and FormatEmbedMarkdownAsync in DiscordChatExporter.Core/Exporting/MessageGroupTemplate.cshtml and render it without HTML entity encoding. 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, allowing the script to read the export or alter its displayed content. This issue is fixed in version 2.47.2.

(As written by CVE List.)

## Affected

- Tyrrrz DiscordChatExporter: < 2.47.2

## References

- <https://github.com/Tyrrrz/DiscordChatExporter/security/advisories/GHSA-8qrv-mmch-fr9c> (exploit)
- <https://github.com/Tyrrrz/DiscordChatExporter/pull/1545>
- <https://github.com/Tyrrrz/DiscordChatExporter/commit/5632d6c3867d2f79cba9578056c98caee4377c1b>
- <https://github.com/Tyrrrz/DiscordChatExporter/releases/tag/2.47.2>

## Sources

- CVE List: [CVE-2026-54682](https://www.cve.org/CVERecord?id=CVE-2026-54682), CVE Terms of Use, modified 2026-08-25
- NVD: [CVE-2026-54682](https://nvd.nist.gov/vuln/detail/CVE-2026-54682), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2026-54682 · Whole record: https://cve.day/CVE-2026-54682.json · Rebuilt by cve.day 2026-11-25T22:59:34.814Z
