Public vulnerability disclosure

CVE-2026-102356

Kroki Mermaid companion SSRF via flowchart image URLs

publishedCWE-918

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.

Technical severity5.0 mediumCVSS 3.1 · CNA: GitHub_M
Published2026-11-06Source updated 2026-11-09
Collected2026-11-104 attributed sources

Fixes and workarounds

Fix

io.kroki:kroki-server (maven): GitHub reports patched versions 0.31.2. Check the advisory for the affected release branch.

Source: GitHub GHSA-px99-rjv4-49g8

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
kroki
yuzutech
>= 0.26.0, < 0.31.2 (affected) CNA: GitHub_M
io.kroki:kroki-server

io.kroki:kroki-server
maven
>= 0.26.0, <= 0.31.1 (affected, GitHub advisory range) GitHub GHSA-px99-rjv4-49g8

Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.

CVSS assessments

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
3.1 / 5.0
medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:NCNA: GitHub_M
3.1 / 5.0
medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:NNVD: [email protected]

Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

References

For agents and automation

Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.

Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.

Endpoints and access details

https://api.y2.dev/api/v2/cyber/cves
https://api.y2.dev/api/v2/cyber/cves/{cveId}

A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.

For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.

Agent access JSON · OpenAPI · CVE API guide