# CVE-2022-46180: Arbitrary HTML injection in discourse-mermaid-theme-component

- Severity: Medium 5.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N`
- 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.66%, higher than 47% of CVEs (2026-11-30)
- Published: 2023-01-04T16:44:54.487Z
- Modified: 2026-06-17T05:11:22.680Z
- Weaknesses: CWE-74, CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- discourse discourse-mermaid-theme-component: = 1.0.0
- discourse mermaid: from 1.0.0 before 1.1.0

## Every score

- GitHub_M: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/discourse/discourse-mermaid-theme-component/security/advisories/GHSA-8437-hgcm-p3q3> (third-party-advisory)
- <https://github.com/discourse/discourse-mermaid-theme-component/pull/14> (patch, third-party-advisory)
- <https://github.com/discourse/discourse-mermaid-theme-component/commit/c10bc4a08bf865cee20e5d5dffba535762813f0f> (patch, third-party-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2022-46180 · Whole record: https://cve.day/CVE-2022-46180.json · Rebuilt by cve.day 2026-11-25T22:58:18.028Z
