Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2022-31108

21
FAUCET Score

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.

Impacted Technologies

VendorProductVersion(s)CPE
>= 8.0.0, < 9.1.3CPE matchmatch criteria
cpe:2.3:a:mermaid_project:mermaid:*:*:*:*:*:node.js:*:*

CVSS Data

CVSS version used by this source: 3.1

4.1MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:N

Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality Impact
LOW
Integrity Impact
NONE
Availability Impact
NONE
Exploitability Score
2.3
Impact Score
1.4
CvssVersion
3.1

Exploit Intelligence

EPSS Score
0.87%
Probability of exploitation in next 30 days
EPSS Percentile
55.0%
Percentile rank of EPSS score among Peer Group
As of 2026-07-27
Model: v2026.06.15
This CVE's current EPSS score of 0.0087 is in the 65th percentile among its peer group of 26,221 CVEs.

Social Chatter

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.

Media 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.

Remediation

Patch Available

Vendor Patches (2)

github_advisorypatch availablevia nvd_reference
View patch
npmpatch availablevia ghsa
Product: mermaidFixed in: 9.1.2

Vendor Advisories (1)

npmGHSA-x3vm-38hw-55wfmedium

Possible inject arbitrary `CSS` into the generated graph affecting the container HTML

Jul 5, 2022

References

github.com / mermaid-js/mermaid/commit/0ae1bdb61adff1cd485caff8c62ec6b8ac57b225
PatchThird Party Advisory
github.com / mermaid-js/mermaid/security/advisories/GHSA-x3vm-38hw-55wf
ExploitThird Party Advisory