Skip to main content

Kroki CVE-2026-102356

| EUVDEUVD-2026-118388 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-11-06 GitHub_M
5.0
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain authorized diagram-submission access
  2. Delivery
    Craft flowchart with attacker-controlled image-node URL
  3. Exploit
    Submit as PNG render request
  4. Execution
    Companion Chromium resolves URL during render
  5. Impact
    Blind GET reaches internal target (SSRF)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires ALL of: (1) the optional yuzutech/kroki-mermaid companion deployed and reachable by the gateway; (2) use of the Mermaid PNG output path (the confirmed path is PNG rendering through headless Chromium - SVG is not the demonstrated vector); (3) a diagram-submission path the actor can reach, directly or via an app that forwards untrusted Mermaid source; (4) the actor satisfying any authentication/authorization the deployment configures; and (5) network reachability from the companion container to the intended target host. The specific trigger is a Mermaid flowchart image node using the @{ img: "URL" } syntax (available since the Mermaid 11.4.0 bundled in Kroki 0.26.0; the 10.9.0 bundled in 0.25.0 lacks it). Setting KROKI_SAFE_MODE=secure does NOT prevent this, since the companion render path did not enforce a network policy. Limiting factors: PR:L authentication, optional-component dependency, PNG-only path, and reachability scope confine impact to hosts the container can already reach.

Impact

This is a genuine but moderate-priority issue, not a drop-everything emergency. The official CVSS 3.1 base score is 5.0 (AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N): network-reachable and low-complexity, but it requires at least low privileges (PR:L) because the actor must satisfy whatever authentication/authorization the deployment enforces and must have a diagram-submission path. The vuln.today decision label is 'this_month', which aligns with a medium-severity SSRF rather than act_now/emergency. No CISA KEV listing is present in the input and no EPSS probability was supplied, so there is no evidence of active exploitation or a modeled high exploitation likelihood - do not infer either from their absence. The scope-change flag (S:C) is justified because the companion issues requests to systems other than itself, but real-world impact is explicitly bounded: the advisory confirms only blind outbound GET reachability and possible state-changing GET endpoints, while response exfiltration, cloud-metadata access, and port scanning were NOT established. Net: a real, confirmed SSRF worth patching on a normal cadence, materially constrained by the PR:L precondition, the optional-companion/PNG-only requirement, and the limited demonstrated impact.

Exploit ScenarioDerived

An actor with a valid diagram-submission path to a Kroki deployment that has the optional Mermaid companion enabled submits a Mermaid flowchart containing an image node whose URL points at an internal host, and requests PNG output. The companion's headless Chromium resolves that URL during rendering, issuing an HTTP(S) GET from inside the companion container to the chosen internal target. A public PoC reference exists (the advisory provides reproduction curl commands against a disposable marker host); it is not verified as working weaponized exploit code.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 06, 2026

Server-side request forgery in Kroki's optional Mermaid companion lets anyone who can submit Mermaid source cause the headless Chromium renderer to issue outbound HTTP or HTTPS GET requests, even when KROKI_SAFE_MODE is set to secure - a PNG-only path, reachable since the Mermaid 11.4.0 bundled in Kroki 0.26.0 introduced flowchart image nodes. Affected deployments run io.kroki:kroki-server 0.26.0 through 0.31.1 together with the yuzutech/kroki-mermaid companion; the submitter must satisfy whatever authentication the deployment configures (CVSS PR:L) and can only reach hosts already reachable from the companion container. The vendor advisory demonstrates outbound request reachability and possible triggering of state-changing GET endpoints; response exfiltration, cloud metadata access and port scanning are not established. This is a genuine but moderate-priority issue rather than a drop-everything emergency: no public exploit code is identified at time of analysis (the advisory does include a marker-host verification recipe), it is not in CISA KEV, and the vendor-released patch is version 0.31.2.

RemediationAI

Vendor-released patch: Kroki 0.31.2, which was still the newest release line at advisory publication. Upgrade io.kroki:kroki-server, and the Mermaid companion image, to 0.31.2 or later; the fix commit (428ea380bc7db9da5c7947f908851c8461d51f82) adds applyNetworkPolicy() to lib/browser-instance/index.js, which installs Puppeteer request interception before the first navigation and permits only file:, data:, the page's own origin, and origins listed in KROKI_ALLOWED_ORIGINS (or a component-prefixed <PREFIX>_ALLOWED_ORIGINS). It also threads a safeMode value through Task and worker.js, treats any unrecognized or missing safeMode as 'secure' (fail closed), blocks callers from overriding safeMode via config, and adds an SSRF regression test. Note the behaviour change: under secure mode, external image loads inside Mermaid diagrams are now aborted and logged, so if your diagrams legitimately reference an internal image host you must add that origin to KROKI_ALLOWED_ORIGINS - and be aware that every origin added widens the SSRF surface again. If upgrading immediately is not possible, the demonstrated path requires the Mermaid companion's PNG rendering, so not deploying the companion or not exposing Mermaid PNG output removes the confirmed vector (at the cost of PNG diagram support); separately, restricting egress from the companion container to only the hosts it legitimately needs limits reachability, which is a precondition for exploitation, but does not fix the underlying request behaviour. The advisory also recommends removing ignoreHTTPSErrors: true unless a documented requirement justifies it, and treating a restrictive CSP as defense in depth rather than the sole enforcement mechanism. Validate the fix in a test environment with a local marker server, confirming that a Mermaid PNG containing an image-node URL produces no outbound request in secure mode. Advisory: https://github.com/yuzutech/kroki/security/advisories/GHSA-px99-rjv4-49g8.

Affected VersionsENISA

kroki 0.26.0, < 0.31.2

Affected Packages

euvd kroki fix: 0.31.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a classic server-side request forgery (CWE-918) arising where two Kroki components meet. server/src/main/java/io/kroki/server/service/Mermaid.java accepts Mermaid source, supports SVG and PNG output, and delegates rendering to the companion without applying any Mermaid-specific safe-mode policy. In the companion, mermaid/src/worker.js calls window.mermaid.render() and, for PNG output, hands the resulting SVG to Puppeteer's page.setContent() and captures #container with container.screenshot(); there is no page.setRequestInterception() handler or URL allowlist, so Chromium resolves any image URL embedded in the SVG. Mermaid 11.4.0 (bundled from Kroki 0.26.0 onward) documents the flowchart image-node syntax @{ img: "URL" }, which carries an attacker-controlled URL; Kroki 0.25.0 bundles Mermaid 10.9.0, which lacks this syntax and is therefore not the affected baseline. The companion's src/config.js blocks callers from changing Mermaid's securityLevel but never restricts the img URL, and Chromium is launched with ignoreHTTPSErrors: true, so even TLS errors do not stop the request. Because Kroki documents SECURE as its default safe mode (and the server Dockerfile sets it), operators reasonably expect network reads to be blocked - the companion render path simply did not enforce that policy, and the enforcement point required is request interception installed before the first navigation, not CSP alone.

Know when Kroki gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 5.0 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
vuln.today AI 5.0 MEDIUM

Remote low-complexity submission but requires an authorized diagram-submission actor (PR:L); scope changes as the companion reaches other systems; only blind reachability (C:L), with integrity/availability impact unestablished (I:N/A:N).

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

1
Patch available
Nov 06, 2026 - 19:02 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 86% exploitable
Prevalence
Low
niche self-hosted diagram tool, optional Mermaid companion narrows footprint further
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

25
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +25
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy