Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain authorized diagram-submission access
-
DeliveryCraft flowchart with attacker-controlled image-node URL
-
ExploitSubmit as PNG render request
-
ExecutionCompanion Chromium resolves URL during render
-
ImpactBlind 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 |
| 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
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).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Unauthenticated local file read in Kroki's TikZ backend (all versions prior to 0.31.2) lets a remote attacker submit cra
Reflected cross-site scripting in the Kroki diagram server's GoAT SVG renderer (all versions up to and including 0.35.0)
Kroki 0.35.0 and earlier lets remote attackers make the server issue arbitrary HTTP requests and read local image files
Reflected cross-site scripting in Kroki's /dbml/svg endpoint before 0.36.0 allows unauthenticated attackers to craft a D
EUVD-2026-118388
NVD
CVE.org
EPSS
GitHub
Exploit-DB