CVE-2026-27740

Source
https://cve.org/CVERecord?id=CVE-2026-27740
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-27740.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-27740
Aliases
Published
2026-03-19T20:56:17.272Z
Modified
2026-07-15T01:48:57.405081010Z
Severity
  • 5.1 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N CVSS Calculator
Summary
Discourse has Stored XSS in AI Triage Automation
Details

Discourse is an open-source discussion platform. Versions prior to 2026.3.0-latest.1, 2026.2.1, and 2026.1.2 have a cross-site scripting vulnerability that arises because the system trusts the raw output from an AI Large Language Model (LLM) and renders it using htmlSafe in the Review Queue interface without adequate sanitization. A malicious attacker can use valid Prompt Injection techniques to force the AI to return a malicious payload (e.g., tags). When a Staff member (Admin/Moderator) views the flagged post in the Review Queue, the payload executes. Versions 2026.3.0-latest.1, 2026.2.1, and 2026.1.2 contain a patch. As a workaround, temporarily disable AI triage automation scripts.

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

Affected packages

Git / github.com/discourse/discourse

Affected ranges

Type
GIT
Repo
https://github.com/discourse/discourse
Events
Database specific
{
    "cpe": [
        "cpe:2.3:a:discourse:discourse:*:*:*:*:*:*:*:*",
        "cpe:2.3:a:discourse:discourse:2026.3.0:*:*:*:latest:*:*:*"
    ],
    "extracted_events": [
        {
            "introduced": "2026.1.0"
        },
        {
            "fixed": "2026.1.2"
        },
        {
            "introduced": "2026.2.0"
        },
        {
            "fixed": "2026.2.1"
        },
        {
            "introduced": "2026.3.0"
        },
        {
            "last_affected": "2026.3.0"
        }
    ],
    "source": [
        "CPE_RANGE",
        "CPE_STRING",
        "REFERENCES"
    ]
}

Affected versions

2026.*
2026.3.0
= 2026.*
= 2026.3.0-latest
Other
esr
stable
v2026.*
v2026.1.0
v2026.1.0-latest
v2026.1.1
v2026.2.0
v2026.2.0-latest
v2026.3.0-latest

Database specific

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