Vulnerabilities · 2022 · Discourse
CVE-2022-46180
Discourse Mermaid vulnerability
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.
Affected products
Mermaid. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Discourse Mermaid runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/discourse/discourse-mermaid-theme-component/commit/c10bc4a08bf865cee20e5d5dffba · Patch
- github.com/discourse/discourse-mermaid-theme-component/pull/14 · Patch
- github.com/discourse/discourse-mermaid-theme-component/security/advisories/GHSA-8437-hgcm- · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2022-46180
- cve.org/CVERecord?id=CVE-2022-46180
More vulnerabilities in Discourse products
CVE-2026-24742CVE-2026-23743CVE-2026-21865CVE-2025-69289CVE-2025-69218CVE-2025-68934CVE-2025-68933CVE-2025-68666All 197
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.