{"id":"CVE-2024-54142","state":"PUBLISHED","title":"Cross-site Scripting via Discourse-ai SharedAiConversation onebox in Discourse","description":"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.","publishedAt":"2025-01-14T22:39:49.458Z","updatedAt":"2025-01-15T14:54:42.790Z","severity":{"score":9.1,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["discourse discourse-ai"],"affected":[{"vendor":"discourse","product":"discourse-ai","versions":[{"version":"< 92f122c","status":"affected"}]}],"references":["https://github.com/discourse/discourse-ai/security/advisories/GHSA-94c2-qr2h-88jv","https://github.com/discourse/discourse-ai/commit/92f122c54d9d7ead9223a056270bff5b4c42c73f"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:08:04.920Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/54xxx/CVE-2024-54142.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-54142","state":"PUBLISHED","datePublished":"2025-01-14T22:39:49.458Z","dateUpdated":"2025-01-15T14:54:42.790Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-11-29T18:02:16.755Z"},"containers":{"cna":{"title":"Cross-site Scripting via Discourse-ai SharedAiConversation onebox in Discourse","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"discourse","product":"discourse-ai","versions":[{"version":"< 92f122c","status":"affected"}]}],"references":[{"url":"https://github.com/discourse/discourse-ai/security/advisories/GHSA-94c2-qr2h-88jv","name":"https://github.com/discourse/discourse-ai/security/advisories/GHSA-94c2-qr2h-88jv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/discourse/discourse-ai/commit/92f122c54d9d7ead9223a056270bff5b4c42c73f","name":"https://github.com/discourse/discourse-ai/commit/92f122c54d9d7ead9223a056270bff5b4c42c73f","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.1,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-01-14T22:39:49.458Z"},"source":{"advisory":"GHSA-94c2-qr2h-88jv","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-01-15T14:54:36.507427Z","id":"CVE-2024-54142","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-01-15T14:54:42.790Z"}}]}}}