{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "92f122c54d9d7ead9223a056270bff5b4c42c73f"
            }
          ],
          "repo": "https://github.com/discourse/discourse-ai",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-94c2-qr2h-88jv"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/54xxx/CVE-2024-54142.json"
  },
  "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.",
  "id": "CVE-2024-54142",
  "modified": "2026-04-01T23:08:39.490446008Z",
  "published": "2025-01-14T22:39:49.458Z",
  "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"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Cross-site Scripting via Discourse-ai SharedAiConversation onebox in Discourse"
}