CVE-2026-54681

Source
https://cve.org/CVERecord?id=CVE-2026-54681
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54681.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-54681
Aliases
  • GHSA-r7qm-wg9p-pjfc
Published
2026-08-21T18:41:45Z
Modified
2026-08-23T03:53:39Z
Severity
  • 4.1 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
DiscordChatExporter: HTML attribute injection via unescaped emoji name in HTML export
Details

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.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-79"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54681.json"
}
References

Affected packages

Git / github.com/tyrrrz/discordchatexporter

Affected ranges

Type
GIT
Repo
https://github.com/tyrrrz/discordchatexporter
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events":  [
        {
            "introduced":  "0"
        },
        {
            "fixed":  "2.47.2"
        }
    ],
    "source":  [
        "AFFECTED_FIELD",
        "REFERENCES"
    ]
}

Affected versions

1.*
1.0.0
2.*
2.0.0
2.1.0
2.10
2.10.1
2.10.2
2.11
2.12
2.12.1
2.13
2.13.1
2.14
2.15
2.16
2.17
2.18
2.19
2.2.0
2.2.1
2.20
2.21
2.21.1
2.21.2
2.22
2.23
2.24
2.25
2.26
2.26.1
2.27
2.27.1
2.28
2.29
2.3
2.30
2.30.1
2.31
2.31.1
2.32
2.33
2.33.1
2.33.2
2.34
2.34.1
2.35
2.35.1
2.35.2
2.36
2.36.1
2.36.2
2.36.3
2.36.4
2.37
2.37.1
2.37.2
2.38
2.39
2.39.1
2.4
2.4.1
2.40
2.40.1
2.40.2
2.40.3
2.40.4
2.41
2.41.1
2.41.2
2.42
2.42.1
2.42.2
2.42.3
2.42.4
2.42.5
2.42.6
2.42.7
2.42.8
2.42.9
2.43
2.43.1
2.43.2
2.43.3
2.44
2.44.1
2.44.2
2.45
2.46
2.46.1
2.47
2.47.1
2.5
2.5.1
2.6
2.7
2.8
2.9
2.9.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54681.json"