CVE-2026-102356

Source
https://cve.org/CVERecord?id=CVE-2026-102356
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-102356.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-102356
Aliases
  • GHSA-px99-rjv4-49g8
Published
2026-11-06T17:38:49Z
Modified
2026-11-14T07:06:35Z
Severity
  • 5.0 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N CVSS Calculator
Summary
Kroki Mermaid companion SSRF via flowchart image URLs
Details

Kroki creates diagrams from textual descriptions. From 0.26.0 until 0.31.2, the optional Mermaid companion's mermaid/src/worker.js renders attacker-controlled flowchart image nodes in headless Chromium without a network request policy, even when KROKI_SAFE_MODE is set to secure. An actor who can submit Mermaid source and satisfy any authentication or authorization configured by the deployment can cause the companion to issue HTTP or HTTPS GET requests when requesting PNG output. Exploitation requires the Mermaid companion, PNG rendering through its headless Chromium process, a diagram-submission path available to the actor, and network reachability from the companion to the target. The demonstrated impact is limited to blind request reachability and possible state-changing GET endpoints; response exfiltration, cloud metadata access, port scanning, and access beyond the companion's network reachability are not established. This issue is fixed in version 0.31.2.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-918"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/102xxx/CVE-2026-102356.json"
}
References

Affected packages

Git / github.com/yuzutech/kroki

Affected ranges

Type
GIT
Repo
https://github.com/yuzutech/kroki
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "0.26.0"
                },
                {
                    "fixed":  "0.31.2"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "fixed":  "428ea380bc7db9da5c7947f908851c8461d51f82"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "v0.31.2",
            "range":  [
                {
                    "fixed":  "25bcf6b87680b37f05e70513731593e9984ea047"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

v0.*
v0.26.0
v0.27.0
v0.28.0
v0.29.0
v0.29.1
v0.30.0
v0.30.1
v0.31.0
v0.31.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-102356.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "339340195803357673580991692088801068809",
            "length":  384
        },
        "id":  "CVE-2026-102356-4479d036",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/yuzutech/kroki/commit/428ea380bc7db9da5c7947f908851c8461d51f82",
        "target":  {
            "file":  "server/src/main/java/io/kroki/server/service/Mermaid.java",
            "function":  "Mermaid"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "215852501911233291668736912147412641985",
            "length":  269
        },
        "id":  "CVE-2026-102356-f627b999",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/yuzutech/kroki/commit/428ea380bc7db9da5c7947f908851c8461d51f82",
        "target":  {
            "file":  "server/src/main/java/io/kroki/server/service/Mermaid.java",
            "function":  "convert"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "47107050450543993610459627984655865863",
                "54753275276301947623182580038677198032",
                "237153969798948748290239051028720014607",
                "156193820080691586892189670860048569907",
                "38106256355988484344028527745831105077",
                "282711409836616178463549863417790322621",
                "208559138217347736534770782537494711833",
                "94136573231725156657928976836015499997",
                "124217249254550572492190127754520152397",
                "284135189109576965255611056323965356145",
                "337593492917461870707242794547688880176",
                "81628272687745629249094045764784551771",
                "303063987367480198058927795610049710978",
                "288604007216307112463325414973221405091",
                "184466605595437197134954544851679857008",
                "72704120840505802427069330273753096337"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-102356-f68cd7d3",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/yuzutech/kroki/commit/428ea380bc7db9da5c7947f908851c8461d51f82",
        "target":  {
            "file":  "server/src/main/java/io/kroki/server/service/Mermaid.java"
        }
    }
]
vanir_signatures_modified
"2026-11-14T07:06:35Z"