# CVE-2024-54142: Cross-site Scripting via Discourse-ai SharedAiConversation onebox in Discourse

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2025-01-14T22:39:49.458Z
- Modified: 2026-06-17T08:09:50.983Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- discourse discourse-ai: < 92f122c

## References

- <https://github.com/discourse/discourse-ai/security/advisories/GHSA-94c2-qr2h-88jv>
- <https://github.com/discourse/discourse-ai/commit/92f122c54d9d7ead9223a056270bff5b4c42c73f>

## Sources

- CVE List: [CVE-2024-54142](https://www.cve.org/CVERecord?id=CVE-2024-54142), CVE Terms of Use, modified 2025-01-15
- NVD: [CVE-2024-54142](https://nvd.nist.gov/vuln/detail/CVE-2024-54142), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-54142 · Whole record: https://cve.day/CVE-2024-54142.json · Rebuilt by cve.day 2026-11-25T22:58:51.038Z
