{"id":"CVE-2024-54142","summary":"Cross-site Scripting via Discourse-ai SharedAiConversation onebox in Discourse","details":"Discourse AI is a Discourse plugin which provides a number of AI features. When sharing Discourse AI Bot conversations into posts, if the conversation had HTML entities those could leak into the Discourse application when a user visited a post with a onebox to said conversation. This issue has been addressed in commit `92f122c`. Users are advised to update. Users unable to update may remove all groups from `ai bot public sharing allowed groups` site setting.","aliases":["GHSA-94c2-qr2h-88jv"],"modified":"2026-04-02T12:24:14.742010Z","published":"2025-01-14T22:39:49.458Z","database_specific":{"cwe_ids":["CWE-79"],"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/54xxx/CVE-2024-54142.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/54xxx/CVE-2024-54142.json"},{"type":"ADVISORY","url":"https://github.com/discourse/discourse-ai/security/advisories/GHSA-94c2-qr2h-88jv"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-54142"},{"type":"FIX","url":"https://github.com/discourse/discourse-ai/commit/92f122c54d9d7ead9223a056270bff5b4c42c73f"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/discourse/discourse-ai","events":[{"introduced":"0"},{"fixed":"92f122c54d9d7ead9223a056270bff5b4c42c73f"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-54142.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H"}]}