Skip to content

CVE-2026-102356 Kroki Mermaid companion SSRF via flowchart image URLs

MediumCVSS 5.0 EPSS 0.41%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

1 package: 0 fixed.

PackageAffectedFixed inStatus
yuzutech kroki = >= 0.26.0, < 0.31.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
yuzutech kroki = >= 0.26.0, < 0.31.2 No fix listed

References