5.0medium
Arbitrary HTML injection in discourse-mermaid-theme-component
- Severity
- 5.0medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.66% (higher than 47% of CVEs)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| discourse discourse-mermaid-theme-component | = 1.0.0 | CVE List |
| discourse mermaid | from 1.0.0 before 1.1.0 | NVD |
All scores
| GitHub_M | 5.0medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
What each source says
CVE List
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.
NVD (es)
Discourse Mermaid (discourse-mermaid-theme-component) permite a los usuarios de Discourse, software de foro de código abierto, crear gráficos utilizando la sintaxis de Mermaid. Los usuarios de la versión 1.0.0 del componente de tema de sirena del discurso que pueden crear publicaciones pueden inyectar HTML arbitrario en esa publicación. El problema se solucionó en la rama "principal" del repositorio de GitHub, con la versión 1.1.0 nombrada como versión parcheada. Los administradores pueden actualizar el componente del tema a través de la interfaz de usuario del administrador. Como workaround, los administradores pueden desactivar temporalmente el componente del tema de la sirena del discurso.
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-46180 changed 2025-03-10 | CVE Terms of Use |
| NVD | CVE-2022-46180 changed 2026-06-17 | Public domain |