CVE-2022-46180
JSON

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 packageVersionsReported by
discourse discourse-mermaid-theme-component= 1.0.0CVE List
discourse mermaidfrom 1.0.0 before 1.1.0NVD

All scores

GitHub_M5.0medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-74CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

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

Sources

SourceRecordLicence
CVE ListCVE-2022-46180 changed 2025-03-10CVE Terms of Use
NVDCVE-2022-46180 changed 2026-06-17Public domain