{"id":"CVE-2026-54682","aliases":["CVE-2026-54682"],"related":[],"kind":"vulnerability","state":"published","title":"DiscordChatExporter: Stored XSS in HTML export when markdown formatting is disabled","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"DiscordChatExporter guarda los registros de chat de Discord en un archivo. Antes de la versión 2.47.2, las exportaciones HTML generadas con el formato markdown deshabilitado pasan contenido controlado por el atacante a través de FormatMarkdownAsync y FormatEmbedMarkdownAsync en DiscordChatExporter.Core/Exporting/MessageGroupTemplate.cshtml y lo renderizan sin codificación de entidades HTML. Los campos afectados incluyen message.Content, message.ForwardedMessage.Content, message.ReferencedMessage.Content, embed.Title, embed.Description, field.Name y field.Value. Un webhook o bot de Discord puede almacenar una carga útil de script en estos campos, y la carga útil se ejecuta cuando un usuario exporta el canal con el formato markdown deshabilitado y abre el HTML resultante, permitiendo que el script lea la exportación o altere su contenido mostrado. Este problema está solucionado en la versión 2.47.2.","source":"nvd"}],"published":"2026-08-21T18:40:05.196Z","modified":"2026-10-14T19:10:00.297Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","score":8.2,"rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 2.47.2","status":"affected"}],"vendor":"Tyrrrz","product":"DiscordChatExporter","source":"cvelist"}],"references":[{"url":"https://github.com/Tyrrrz/DiscordChatExporter/security/advisories/GHSA-8qrv-mmch-fr9c","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Tyrrrz/DiscordChatExporter/pull/1545","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Tyrrrz/DiscordChatExporter/commit/5632d6c3867d2f79cba9578056c98caee4377c1b","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Tyrrrz/DiscordChatExporter/releases/tag/2.47.2","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-08-25T17:30:13.704Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54682","url":"https://www.cve.org/CVERecord?id=CVE-2026-54682","licence":"CVE Terms of Use","modified":"2026-08-25T17:31:36.280Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54682","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54682","licence":"Public domain","modified":"2026-10-14T19:10:00.297Z"}],"updatedAt":"2026-11-25T22:59:34.814Z","epss":{"score":0.00135,"percentile":0.03176,"date":"2026-12-01T12:00:22.000Z"}}