---
id: "CVE-2026-102356"
page: "https://infrastack.ai/live/CVE-2026-102356"
kind: "vulnerability"
aliases: ["CVE-2026-102356"]
title: "Kroki: Mermaid companion can be made to send blind server-side requests"
severity: "medium"
cvss: 5.0
epss: null
exploited: false
status: "open"
category: "other"
products: []
ecosystems: []
tags: ["docker", "kroki", "mermaid", "other", "self-hosted"]
not_affected_if: ["isolated-network", "no-mermaid-companion", "no-png-rendering"]
published_at: "2026-11-06T18:17:36+00:00"
first_seen_at: "2026-11-06T18:44:08+00:00"
updated_at: "2026-11-06T18:45:22+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-102356", "first_seen_at": "2026-11-06T18:44:08+00:00"}]
exploit_sources: []
---

# Kroki: Mermaid companion can be made to send blind server-side requests

Link for people: https://infrastack.ai/live/CVE-2026-102356 (this .md is for agents)

Kroki's optional Mermaid companion renders attacker-supplied flowchart image nodes in headless Chromium without a request policy, even when safe mode is set. An actor who can submit Mermaid source can make the companion issue HTTP or HTTPS GET requests, with the demonstrated impact limited to blind request reachability and possibly state-changing GET endpoints.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the Kroki version in use; versions from 0.26.0 up to but not including 0.31.2 are affected.
- Check whether the Mermaid companion is deployed and whether it renders PNG output through its headless Chromium process.
- Check whether the companion can reach internal HTTP or HTTPS endpoints on its network.

## Fix

- Move Kroki to `0.31.2` or later.

## Timeline

- 2026-11-06T18:44:08+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-102356

## Documents

- [advisory] Vendor advisory: github.com https://github.com/yuzutech/kroki/security/advisories/GHSA-px99-rjv4-49g8
- [fix] Patch: github.com https://github.com/yuzutech/kroki/commit/428ea380bc7db9da5c7947f908851c8461d51f82
- [fix] Release notes: github.com https://github.com/yuzutech/kroki/releases/tag/v0.31.2

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
