{"answers":{"affected":"","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54681 exists.","fix":"No fix has been published for CVE-2026-54681 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-54681 is a medium-severity cross-site scripting vulnerability in Tyrrrz DiscordChatExporter, published on 21 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-54681 and fix it if it is affected.\n\nWhat it is: CVE-2026-54681 is a medium-severity cross-site scripting vulnerability in Tyrrrz DiscordChatExporter, published on 21 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54681 exists.\n\nAffected product: Tyrrrz DiscordChatExporter. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-54681/ (Markdown: https://insights.sbomify.com/CVE-2026-54681/index.md)","id":"CVE-2026-54681","markdown":"https://insights.sbomify.com/CVE-2026-54681/index.md","name":"CVE-2026-54681","record":{"aliases":["GHSA-r7qm-wg9p-pjfc"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Discord chat exporter","requires_auth":"none","summary":"Attackers can inject HTML attributes via unescaped emoji names in DiscordChatExporter HTML exports, leading to script execution when users open the file.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":4.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"DiscordChatExporter: HTML attribute injection via unescaped emoji name in HTML export","id":"CVE-2026-54681","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"xss","year":"2026"},"n_packages":0,"n_references":4,"next":{"headline":"DiscordChatExporter: Stored XSS in HTML export when markdown formatting is disabled","id":"CVE-2026-54682"},"packages":[],"prev":{"headline":"Logging operator has Fluentd configuration injection that allows remote code execution","id":"CVE-2026-54680"},"products":["DiscordChatExporter"],"published":"2026-08-21","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-21","vendors":["Tyrrrz"]},"summary":"Attackers can inject HTML attributes via unescaped emoji names in DiscordChatExporter HTML exports, leading to script execution when users open the file.","url":"https://insights.sbomify.com/CVE-2026-54681/"}