Skip to content
MediumVulnerabilityLLM-specific

CVE-2026-27740: Discourse cross-site scripting in Review Queue via AI LLM output

Identifier
CVE-2026-27740
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%

Summary

Discourse versions before 2026.3.0-latest.1, 2026.2.1, and 2026.1.2 contain a cross-site scripting flaw in the Review Queue. The platform renders raw output from an AI LLM with htmlSafe without adequate sanitization. An attacker can use prompt injection to make the AI return a malicious payload, which executes when a Staff member (Admin or Moderator) views the flagged post.

Mitigation

Fixed in 2026.3.0-latest.1, 2026.2.1, and 2026.1.2. As a workaround, temporarily disable AI triage automation scripts.