{"id":"CVE-2026-54681","aliases":["CVE-2026-54681"],"related":[],"kind":"vulnerability","state":"published","title":"DiscordChatExporter: HTML attribute injection via unescaped emoji name in HTML export","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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":"cvelist"},{"lang":"es","text":"DiscordChatExporter guarda los registros de chat de Discord en un archivo. Antes de 2.47.2, el método VisitEmojiAsync en DiscordChatExporter.Core/Exporting/HtmlMarkdownVisitor.cs interpola emoji.Name en el atributo alt y emoji.Code en el atributo title sin codificación de entidades HTML. Esto afecta a las exportaciones HTML independientemente de la configuración de markdown. La validación actual de nombres de emojis personalizados de Discord normalmente excluye caracteres que rompen atributos, pero una entrada sin conexión manipulada, una regla de validación ascendente relajada o cualquier otra fuente de metadatos futura puede inyectar un atributo HTML y ejecutar un script cuando un usuario abre la exportación. Este problema está solucionado en la versión 2.47.2.","source":"nvd"}],"published":"2026-08-21T18:41:45.861Z","modified":"2026-10-14T19:10:00.297Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","score":4.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","score":4.1,"rating":"MEDIUM"}],"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-r7qm-wg9p-pjfc","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Tyrrrz/DiscordChatExporter/pull/1544","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Tyrrrz/DiscordChatExporter/commit/f4d1e630f7f27120c3be4320d92cc8b932e78688","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":"poc","automatable":"no","technicalImpact":"partial","date":"2026-08-21T19:04:35.533Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54681","url":"https://www.cve.org/CVERecord?id=CVE-2026-54681","licence":"CVE Terms of Use","modified":"2026-08-21T19:04:42.235Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54681","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54681","licence":"Public domain","modified":"2026-10-14T19:10:00.297Z"}],"updatedAt":"2026-11-25T22:59:34.813Z","epss":{"score":0.00125,"percentile":0.02418,"date":"2026-12-01T12:00:22.000Z"}}