Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach exposed Kroki endpoint
-
ExploitPOST crafted BlockDiag diagram with URL icon/background
-
ExecutionServer fetches internal/metadata URL or local file
-
ImpactRead response bytes embedded in rendered SVG
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 | No authentication, user interaction, or non-default configuration is required: the advisory confirms exploitation works against the default KROKI_SAFE_MODE=secure because safe mode never gated the BlockDiag binary, which is the exact condition that makes this exploitable. The only prerequisite is network reachability to a BlockDiag-family route (/blockdiag, /seqdiag, /actdiag, /nwdiag, /packetdiag, /rackdiag) on an instance at or below 0.35.0. Limiting factors on realistic impact: the server only embeds the fetched body back to the attacker when the target returns an image (other targets are a blind request), and local file read is limited to image files readable by the Kroki process; impact is read-only (no write, RCE, or availability effect). Running with KROKI_SAFE_MODE=unsafe disables the 0.36.0 fix and re-enables the behavior. |
| Impact | Signals are largely consistent and point to a real but moderate-priority issue. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) confirms a remotely reachable, low-complexity, unauthenticated flaw, and because PR:N is present the unauthenticated characterization is supported by the vector rather than inferred from text. Impact is deliberately scoped low: VC:L/SC:L with VI/VA/SI/SA all N, reflecting that this is a read-oriented SSRF (reach internal services/cloud metadata and read back image-returning bodies plus local image files) rather than code execution or data destruction. The vuln.today decision label is 'this_month' (not act_now/emergency), aligning with the moderate 6.9 score. No EPSS score and no CISA KEV entry were provided, so there is no evidence of active exploitation or a modeled exploitation probability - this is not confirmed in-the-wild activity. However, the GHSA advisory contains a fully reproduced curl proof-of-concept against the then-current release, so a working public trigger is documented even though the input does not carry a 'POC: Publicly available (confirmed)' marker. Net: a genuine, easily triggered SSRF worth patching within a normal cycle, elevated by exposure to cloud-metadata theft, but not a drop-everything emergency on the signals provided. Missing data: no EPSS, no KEV status, and exploitation is bounded by the low technical impact (confidentiality only, image-returning targets or image files). |
| Exploit ScenarioDerived | An unauthenticated attacker who can reach a self-hosted Kroki instance sends a crafted BlockDiag-family diagram to POST /blockdiag/svg (or a sibling endpoint) with a node 'icon' or 'background' set to an internal URL such as http://169.254.169.254/, causing the server to fetch it and embed the response bytes in the returned SVG when the target returns an image. Because this works under the default KROKI_SAFE_MODE=secure and needs no authentication or user interaction (AV:N/AC:L/PR:N/UI:N), it is trivially repeatable; a working curl PoC is published in the GHSA advisory. The same attributes also accept local paths, letting the attacker read local image files readable by the Kroki process. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 15, 2026
Kroki 0.35.0 and earlier lets remote attackers make the server issue arbitrary HTTP requests and read local image files through the BlockDiag family of diagram engines (blockdiag, seqdiag, actdiag, nwdiag, packetdiag, rackdiag). A crafted diagram posted to /blockdiag/svg or a sibling endpoint with a node icon or background set to a URL causes the BlockDiag binary to fetch that URL, and when the target returns an image its bytes are embedded base64-encoded in the rendered SVG returned to the caller; a local path in the same attributes is read with open() and likewise embedded. No authentication, user interaction or non-default configuration is required - the advisory confirms the default KROKI_SAFE_MODE=secure never gated this binary - so any instance reachable on a BlockDiag route is exposed to internal service and cloud metadata probing, read-back only where the target returns an image, and read of local image files readable by the Kroki process. A proof of concept is documented and was reproduced against the 0.33.0 standalone server jar; the issue is fixed in 0.36.0, and no CISA KEV listing exists.
RemediationAI
Vendor-released patch: upgrade to Kroki 0.36.0 (io.kroki:kroki-server 0.36.0), which ships blockdiag 3.4.3 and passes its new --no-external-images flag unless KROKI_SAFE_MODE is set to unsafe, causing URL- and path-valued icon/background attributes to be ignored; the fix is in commit https://github.com/yuzutech/kroki/commit/becd3b4a86754cb08d0fe54f65e92a6cab542409. If upgrading is not immediately possible, the advisory's workarounds are to block the BlockDiag routes (/blockdiag, /seqdiag, /actdiag, /nwdiag, /packetdiag, /rackdiag) at a reverse proxy - which removes those diagram types from service, an availability trade-off for legitimate users - or to restrict the outbound network access of the Kroki container, which limits SSRF reach to internal services and cloud metadata (for example the 169.254.169.254 endpoint) but leaves local image file reads possible, since those use a filesystem open rather than a network call. Do not set KROKI_SAFE_MODE=unsafe on 0.36.0, as that disables the new flag and re-enables the vulnerable behavior.
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) rooted in the upstream BlockDiag Python toolchain rather than in Kroki's own request handling. In blockdiag, the set_icon and set_background element setters accept any value that passes urlutil.isurl(), and get_image_size subsequently opens that value through urlopen during layout in noderenderer/base.py, for every output format - the same code path is shared by all six sibling engines because they ship one binary and one renderer. Kroki's Blockdiag.convert passed the raw diagram source to that binary without any safe-mode flag; KROKI_SAFE_MODE only restricted PlantUML, Vega, TikZ and Structurizr, so the default secure setting gave no protection here. The fetched or locally opened bytes are base64-encoded into the resulting SVG, which turns a blind SSRF into a read primitive whenever the target responds with image content, and additionally allows reading local image files the Kroki process can open. The remediation in commit becd3b4a works on both layers: it bumps the bundled builder from blockdiag 3.4.2 to 3.4.3 (which introduces a --no-external-images flag) and has Blockdiag.java inject --no-external-images whenever SafeMode != UNSAFE, ignoring URL and file-valued icon/background attributes. Note that the trigger requires the attacker to control the diagram source only; authentication requirements are unconfirmed beyond the PR:N vector indicating unauthenticated access.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
Remote, low-complexity, unauthenticated with no UI; SSRF makes the server act on other systems so S:C, with limited confidentiality (image bodies/files) and no integrity or availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Kroki before 0.36.0 contains a server-side request forgery vulnerability in the BlockDiag family of engines that allows unauthenticated attackers to make server requests via node icon and background attributes. Attackers can send crafted diagrams to POST /blockdiag/svg or sibling endpoints to query internal services or cloud metadata and read local image files from the server.
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)
Reflected cross-site scripting in Kroki's /dbml/svg endpoint before 0.36.0 allows unauthenticated attackers to craft a D
Server-side request forgery in Kroki's optional Mermaid companion lets anyone who can submit Mermaid source cause the he
EUVD-2026-126082
GHSA-976x-w3hh-23xw
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB