{
  "affected": [
    {
      "database_specific": {
        "unresolved_ranges": [
          {
            "events": [
              {
                "introduced": "1.0.0"
              },
              {
                "fixed": "1.1.0"
              }
            ]
          },
          {
            "events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "the"
              }
            ]
          }
        ]
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "c10bc4a08bf865cee20e5d5dffba535762813f0f"
            }
          ],
          "repo": "https://github.com/discourse/discourse-mermaid-theme-component",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "c10bc4a08bf865cee20e5d5dffba535762813f0f"
            }
          ],
          "repo": "https://github.com/discourse/discourse-mermaid-theme-component",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-8437-hgcm-p3q3"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-74"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/46xxx/CVE-2022-46180.json"
  },
  "details": "Discourse Mermaid (discourse-mermaid-theme-component) allows users of Discourse, open-source forum software, to create graphs using the Mermaid syntax. Users of discourse-mermaid-theme-component version 1.0.0 who can create posts are able to inject arbitrary HTML on that post. The issue has been fixed on the `main` branch of the GitHub repository, with 1.1.0 named as a patched version. Admins can update the theme component through the admin UI. As a workaround, admins can temporarily disable discourse-mermaid-theme-component.",
  "id": "CVE-2022-46180",
  "modified": "2026-04-01T23:10:35.769508426Z",
  "published": "2023-01-04T16:44:54.487Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/46xxx/CVE-2022-46180.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/discourse/discourse-mermaid-theme-component/security/advisories/GHSA-8437-hgcm-p3q3"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-46180"
    },
    {
      "type": "FIX",
      "url": "https://github.com/discourse/discourse-mermaid-theme-component/commit/c10bc4a08bf865cee20e5d5dffba535762813f0f"
    },
    {
      "type": "FIX",
      "url": "https://github.com/discourse/discourse-mermaid-theme-component/pull/14"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Arbitrary HTML injection in discourse-mermaid-theme-component"
}