Skip to content
Heist/ feed
Back to feed
Medium

Arbitrary HTML injection in discourse-mermaid-theme-component

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-46180
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 02:24 UTC · Revision 1

Source evidence

Arbitrary HTML injection in discourse-mermaid-theme-component

core-osv · Original source

Published 4 Jan 2023, 16:44 UTC

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.

osv:CVE-2022-46180
Complete source record
{
  "id": "1502e9fe00dba6b1363b1fbcb147e2292913f74229dd48977d55015d88a9efa0",
  "url": "https://osv.dev/vulnerability/CVE-2022-46180",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Arbitrary HTML injection in discourse-mermaid-theme-component",
    "summary": "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.",
    "evidence": "osv:CVE-2022-46180",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-46180",
      "aliases": [
        "CVE-2022-46180",
        "GHSA-8437-hgcm-p3q3"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/discourse/discourse-mermaid-theme-component",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "c10bc4a08bf865cee20e5d5dffba535762813f0f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "fixed": "c10bc4a08bf865cee20e5d5dffba535762813f0f"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-46180.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:25.502163974Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/46xxx/CVE-2022-46180.json",
        "https://github.com/discourse/discourse-mermaid-theme-component/security/advisories/GHSA-8437-hgcm-p3q3",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-46180",
        "https://github.com/discourse/discourse-mermaid-theme-component/commit/c10bc4a08bf865cee20e5d5dffba535762813f0f",
        "https://github.com/discourse/discourse-mermaid-theme-component/pull/14"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-74"
        ],
        "cna_assigner": "GitHub_M",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "= 1.0.0"
                  },
                  {
                    "last_affected": "= 1.0.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/46xxx/CVE-2022-46180.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-46180",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 491877,
  "published_at": "2023-01-04T16:44:54.487+00:00"
}