CVE Catalog

CVE-2026-27740

MediumCVSS 6.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.39%

35th percentile - higher than 35% of all known CVEs

Summary

Discourse, an open-source discussion platform, in versions prior to 2026.3.0-latest.1, 2026.2.1, and 2026.1.2 has a cross-site scripting vulnerability arising because the system trusts raw output from an AI Large Language Model (LLM) and renders it using htmlSafe in the Review Queue interface without adequate sanitization. An attacker can use Prompt Injection techniques to force the AI to return a malicious payload (e.g., tags), which executes when a Staff member (Admin/Moderator) views the flagged post in the Review Queue. Versions 2026.3.0-latest.1, 2026.2.1, and 2026.1.2 contain a patch.

Risk Assessment

An attacker can execute arbitrary JavaScript in staff browsers, hijacking sessions or performing actions on behalf of administrators, potentially leading to full account takeover.

Recommendation

Update Discourse to version 2026.3.0-latest.1, 2026.2.1, or 2026.1.2. As a workaround, temporarily disable AI triage automation scripts.

Other vulnerabilities in Discourse

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS