XSS in Mermaid-js Mermaid
CVE-2022-31108
Mermaid is a JavaScript based diagramming and charting tool that uses Markdown-inspired text definitions and a renderer to create and modify complex diagrams. An attacker is able to inject arbitrary `CSS` into the generated graph allowing…
EPSS: 0.009 (54.8th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 4.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N.
Affected products
- Mermaid-js Mermaid — versions >= 8.0.0, < 9.1.3
- Mermaid_project Mermaid
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Exploit, Third Party Advisory)
- security-advisories@github.com (Patch, Third Party Advisory, x_refsource_MISC)
Frequently asked questions
- What is CVE-2022-31108?
- CVE-2022-31108 is a medium-severity vulnerability in Mermaid-js Mermaid, classified under Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection). CVSS score: 4.1/10. Published 2022-06-28.
- How severe is CVE-2022-31108?
- Medium severity. CVSS v3 base score is 4.1 out of 10.