Server-side request forgery in Kroki Mermaid companion via image URLs
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-918 and the CVSS impact.
Summary
Kroki, a tool that creates diagrams from textual descriptions, is affected from 0.26.0 before 0.31.2 in its optional Mermaid companion. The companion's worker renders attacker-controlled flowchart image nodes in headless Chromium without a network request policy, even when KROKI_SAFE_MODE is set to secure, which is a server-side request forgery flaw (CWE-918). An actor who can submit Mermaid source and satisfy any configured authentication or authorization can make the companion send HTTP or HTTPS GET requests when it requests PNG output. The demonstrated impact is limited to blind request reachability and possible state-changing GET endpoints.
Written with Claude Haiku 5.5 from the sources below · 2026-11-06
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Upgrade yuzutech kroki to version 0.31.2, which fixes the issue. The sources list no fixed version for the Mermaid companion beyond this release.
Written with Claude Haiku 5.5 from the sources below · 2026-11-06
- Fix · CNA kroki (yuzutech) Fixed in 0.31.2
Timeline
- 2026-11-06 Threatist record created from CVE-2026-102356
References
More yuzutech vulnerabilities
- TI-2025-13586 due to insufficient sanitazation in Vega’s `convert()` function when `safeMode` is… CVSS 4.0HIGH 8.7
- TI-2026-86047 Kroki: TikZ Secure Mode Local File Read via LaTeX File I/O Primitives CVSS 3.1HIGH 7.5
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences