MediumVulnerabilityLLM-specific
CVE-2026-27740: Discourse cross-site scripting in Review Queue via AI LLM output
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-27740
- Published
- Record updated
- 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.
Related items
- MediumCVE-2026-121936: easyVoice server-side request forgery through openaiBaseUrl in /api/v1/ttsSimilar attack · NVD/CVE Database
- InfoTop agent skill security resources — November 2026Similar attack · Adversa AI Blog
- InfoHow to Turn AI Red Team Findings Into Runtime ControlsSimilar attack · Straiker Blog
- MediumCVE-2026-118628: MLflow get-artifacts server-side request forgery information disclosureSimilar attack · NVD/CVE Database
- HighCVE-2026-118625: MLflow Tracking Server privilege escalation via get_endpointsSimilar attack · NVD/CVE Database