{"id":"CVE-2023-26040","summary":"Discourse chat messages susceptible to Cross-site Scripting through chat excerpts","details":"Discourse is an open-source discussion platform. Between versions 3.1.0.beta2 and 3.1.0.beta3 of the `tests-passed` branch, editing or responding to a chat message containing malicious content could lead to a cross-site scripting attack. This issue is patched in version 3.1.0.beta3 of the `tests-passed` branch. There are no known workarounds.","aliases":["BIT-discourse-2023-26040","GHSA-ccfc-qpmp-gq87"],"modified":"2026-08-12T03:51:44.103670963Z","published":"2023-03-17T14:45:35.889Z","database_specific":{"unresolved_ranges":[{"extracted_events":[{"introduced":"tests-passed \u003e 3.1.0.beta2, \u003c 3.1.0.beta3"},{"last_affected":"tests-passed \u003e 3.1.0.beta2, \u003c 3.1.0.beta3"}],"source":"AFFECTED_FIELD"}],"cna_assigner":"GitHub_M","cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/26xxx/CVE-2023-26040.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/26xxx/CVE-2023-26040.json"},{"type":"ADVISORY","url":"https://github.com/discourse/discourse/security/advisories/GHSA-ccfc-qpmp-gq87"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26040"},{"type":"FIX","url":"https://github.com/discourse/discourse/commit/a373bf2a01488c206e7feb28a9d2361b22ce6e70"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/discourse/discourse","events":[{"introduced":"e6a41150e24f3163d61d32f86834acae8098dead"},{"fixed":"a373bf2a01488c206e7feb28a9d2361b22ce6e70"}],"database_specific":{"source":["CPE_STRING","REFERENCES"],"cpe":"cpe:2.3:a:discourse:discourse:3.1.0:beta2:*:*:beta:*:*:*","extracted_events":[{"introduced":"3.1.0-beta2"},{"last_affected":"3.1.0-beta2"}]}}],"versions":["3.1.0-beta2","v3.1.0.beta2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-26040.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L"}]}