CVE-2022-31108 describes a CSS injection vulnerability in Mermaid, a JavaScript diagramming tool, affecting versions prior to 9.1.3. An attacker can inject arbitrary CSS into generated graphs, potentially leading to information disclosure through crafted CSS selectors that exfiltrate data character by character via HTTP requests. This vulnerability has a CVSS score of 6.1 (Medium), indicating a network-based attack requiring user interaction with low attack complexity, impacting confidentiality and integrity. There is no evidence of active exploitation, public exploit code, or significant community discussion, and it is not listed in CISA's KEV catalog.
| Vendor | Product | Version(s) | CPE |
|---|---|---|---|
>= 8.0.0, < 9.1.3CPE matchmatch criteria | cpe:2.3:a:mermaid_project:mermaid:*:*:*:*:*:node.js:*:* |
CVSS version used by this source: 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N
The average CVE in this peer group has 0.0 Twitter, 0.0 Reddit, 0.1 Bluesky, 0.0 Mastodon, and 0.1 GitHub mentions.
No media coverage found for this CVE.
The average CVE in this peer group has 0.1 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.