GHSA-x3vm-38hw-55wf · 深刻度: medium · エコシステム: npm — Possible inject arbitrary `CSS` into the generated graph affecting the container HTML
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 them to change the styling of elements outside of the generated graph, and potentially exfiltrate sensitive information by using specially crafted `CSS` selectors. The following example shows how an attacker can exfiltrate the contents of an input field by bruteforcing the `value` attribute one character at a time. Whenever there is an actual match, an `http` request will be made by the browser in order to "load" a background image that will let an attacker know what's the value of the character. This issue may lead to `Information Disclosure` via CSS selectors and functions able to generate HTTP requests. This also allows an attacker to change the document in ways which may lead a user to perform unintended actions, such as clicking on a link, etc. This issue has been resolved in version 9.1.3. Users are advised to upgrade. Users unable to upgrade should ensure that user input is adequately escaped before embedding it in CSS blocks.
総合評価: CVE-2022-31108 は公開エクスプロイトあり(50.6/100)。CVSS 深刻度は中。悪用される可能性が高い(EPSS 0.87%、55 パーセンタイル) 根拠: 公開エクスプロイトが 1 件参照されています(Exploit-DB)。 推奨対応: 公開エクスプロイトが確認されています。影響範囲の確認、緩和策の適用、パッチ適用を優先してください。
リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。
| EDB-ID | ソース | 種別 | 公開 | リンク |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS は日次で悪用されやすさの相対度合いを推定します。パーセンタイルは採点済み CVE の中での相対位置(高いほど相対的に深刻)を示します。
| # | 日付 | 旧 EPSS スコア | 新 EPSS スコア | Δ(新 − 旧) |
|---|---|---|---|---|
| 1 | 2026-07-15 | 0.76% | 0.87% | +0.11% |
| 2 | 2026-06-15 | 0.22% | 0.76% | +0.54% |
| 3 | 2025-09-16 | — | 0.22% | — |
EPSS の全履歴 (全 9 件)
この CVE の CVSS 指標。
| ベーススコア | バージョン | 深刻度 | ベクトル | 悪用しやすさ | 影響 | スコアの出典 |
|---|---|---|---|---|---|---|
| 4.1 | 3.1 | MEDIUM |
|
2.3 | 1.4 | [email protected] |
| 6.1 | 3.1 | MEDIUM |
|
2.8 | 2.7 | [email protected] |
| 5.8 | 2.0 | MEDIUM |
|
8.6 | 4.9 | [email protected] |
GHSA-x3vm-38hw-55wf · 深刻度: medium · エコシステム: npm — Possible inject arbitrary `CSS` into the generated graph affecting the container HTML
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2022-31108 not yet assigned priority: Debian including 1 source packages (node-mermaid), 2 status rows across 2 suites (bullseye, sid): open 1, resolved 1. | https://security-tracker.debian.org/tracker/CVE-2022-31108 |
ubuntu
|
medium | CVE-2022-31108 medium priority: Ubuntu including 1 source packages (node-mermaid), 14 status rows across 14 suites (bionic, focal, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): DNE 10, ignored 2, needs-triage 1, released 1. | https://ubuntu.com/security/CVE-2022-31108 |
| ベンダー | 製品 | バージョン | 生の CPE |
|---|---|---|---|
| mermaid_project | mermaid | >= 8.0.0, < 9.1.3 | cpe:2.3:a:mermaid_project:mermaid:*:*:*:*:*:node.js:*:* |
| URL | タグ |
|---|---|
| https://github.com/mermaid-js/mermaid/commit/0ae1bdb61adff1cd485caff8c62ec6b8ac57b225 | Patch Third Party Advisory |
| https://github.com/mermaid-js/mermaid/security/advisories/GHSA-x3vm-38hw-55wf | Exploit Third Party Advisory |