CVE Explorer
CVE-2026-27740
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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"discourse","vendor":"discourse","versions":[{"status":"affected","version":">= 2026.1.0-latest, < 2026.1.2"},{"status":"affected","version":">= 2026.2.0-latest, < 2026.2.1"},{"status":"affected","version":"= 2026.3.0-latest"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:d3f282962770df2196264a0d23040e5bc5413e0b97cbf678fbd304c16f4bf5b3 · sha256:e1f08205f8a0f3d3… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":5.1,"baseSeverity":"MEDIUM","privilegesRequired":"LOW","subAvailabilityImpact":"NONE","subConfidentialityImpact":"LOW","subIntegrityImpact":"LOW","userInteraction":"PASSIVE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"LOW"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:d3f282962770df2196264a0d23040e5bc5413e0b97cbf678fbd304c16f4bf5b3 · sha256:e1f08205f8a0f3d3… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-79","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:d3f282962770df2196264a0d23040e5bc5413e0b97cbf678fbd304c16f4bf5b3 · sha256:e1f08205f8a0f3d3… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"name":"https://github.com/discourse/discourse/commit/44b84439df7e4424b2e7f216fd8fdd7dacff2227","tags":["x_refsource_MISC"],"url":"https://github.com/discourse/discourse/commit/44b84439df7e4424b2e7f216fd8fdd7dacff2227"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:d3f282962770df2196264a0d23040e5bc5413e0b97cbf678fbd304c16f4bf5b3 · sha256:e1f08205f8a0f3d3… · /containers/cna/references/1
{"name":"https://github.com/discourse/discourse/commit/8ae7cb2414d6918d7fc45e1fda7ffbb32912a975","tags":["x_refsource_MISC"],"url":"https://github.com/discourse/discourse/commit/8ae7cb2414d6918d7fc45e1fda7ffbb32912a975"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:d3f282962770df2196264a0d23040e5bc5413e0b97cbf678fbd304c16f4bf5b3 · sha256:e1f08205f8a0f3d3… · /containers/cna/references/2
{"name":"https://github.com/discourse/discourse/commit/ed70949f2c047196f33cfa94f2819df29c5d1e5f","tags":["x_refsource_MISC"],"url":"https://github.com/discourse/discourse/commit/ed70949f2c047196f33cfa94f2819df29c5d1e5f"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:d3f282962770df2196264a0d23040e5bc5413e0b97cbf678fbd304c16f4bf5b3 · sha256:e1f08205f8a0f3d3… · /containers/cna/references/3
{"name":"https://github.com/discourse/discourse/security/advisories/GHSA-95hc-42c6-wvvr","tags":["x_refsource_CONFIRM"],"url":"https://github.com/discourse/discourse/security/advisories/GHSA-95hc-42c6-wvvr"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:d3f282962770df2196264a0d23040e5bc5413e0b97cbf678fbd304c16f4bf5b3 · sha256:e1f08205f8a0f3d3… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.