Description
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.
Published: 2026-11-06
Score: 5 Medium
EPSS: n/a
KEV: No
Impact: Server‑Side Request Forgery (SSRF) – blind external reachability
Action: Apply Patch
AI Analysis

Impact

Kroki’s Mermaid companion renders diagram images using a headless Chromium engine without a network request policy. From version 0.26.0 through 0.31.2 an attacker who can submit Mermaid source files can cause the engine to perform HTTP or HTTPS GET requests to arbitrary URLs. The resulting SSRF is blind: the companion does not capture response content, so the impact is limited to reachability and potential state‑changing GET endpoints. No data exfiltration, cloud metadata access, or port scanning has been demonstrated. The vulnerability is triggered only when the Mermaid companion, PNG rendering, a diagram‑submission path, and network connectivity from the companion to the target are available.

Affected Systems

Affected vendors include yuzutech; product Kroki. All releases from v0.26.0 up to and including v0.31.2 are vulnerable. Versions prior to 0.26.0 or after 0.31.2 contain the fix. The issue is specifically tied to the mermaid/src/worker.js component of the Mermaid companion.

Risk and Exploitability

The CVSS score of 5 indicates moderate severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting no broad exploitation campaigns have been reported yet. Exploitation requires that the attacker meets any authentication or authorization mechanisms configured on the Kroki deployment and that the Mermaid companion has outbound network connectivity. Because the SSRF is blind and limited to GET requests, the range of potential damage is narrower than typical SSRF scenarios, but an attacker could still reach internal services or trigger side‑effects on external state‑changing endpoints.

Generated by OpenCVE AI on November 6, 2026 at 18:56 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Kroki to version 0.31.2 or later, which removes the headless Chromium rendering flaw.
  • If an upgrade is not immediately feasible, isolate the Mermaid companion’s network outbound traffic by placing it on a network segment that does not reach the internal or external services the attacker could target, or block outbound HTTP/HTTPS from its container.
  • Restrict the diagram‑submission endpoint to authenticated and authorized users, ensuring that only trusted actors can submit Mermaid source files. Applying the default KROKI_SAFE_MODE is insufficient because the issue persists even when set to secure.

Generated by OpenCVE AI on November 6, 2026 at 18:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 06 Nov 2026 17:45:00 +0000

Type Values Removed Values Added
Description 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.
Title Kroki Mermaid companion SSRF via flowchart image URLs
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-11-06T17:38:49.280Z

Reserved: 2026-09-28T22:38:42.255Z

Link: CVE-2026-102356

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-06T18:17:36.717

Modified: 2026-11-06T18:17:36.717

Link: CVE-2026-102356

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-06T19:00:12Z

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)