Skip to main content

Kroki CVE-2026-129447

| EUVDEUVD-2026-125946 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-14 VulnCheck GHSA-r7q7-fpwp-8f26
5.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Craft DBML with javascript: url setting
  2. Delivery
    Encode into Kroki /dbml/svg GET link
  3. Exploit
    Send link to victim
  4. Execution
    Victim opens SVG and clicks table header
  5. Impact
    JavaScript executes in Kroki origin

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

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

Exploitation Conditions

Exploitation requires the Kroki /dbml/svg endpoint to be reachable and the DBML diagram service enabled (it is available in Kroki's default SECURE mode, and the advisory states this route does NOT depend on KROKI_SAFE_MODE, so default deployments are affected). The attacker-controlled trigger is any of three DBML settings on versions <=0.35.0: a table 'url' set to a javascript: scheme, a table 'headercolor' crafted to inject an HREF attribute, or a TableGroup 'color' crafted to inject a URL attribute. The decisive LIMITING factor is user interaction: the victim must both open the generated SVG as a document (directly, or embedded via <iframe>/<object>) AND click the rendered table header hyperlink - code does not run on mere page load. Impact is further bounded to whatever the Kroki serving origin exposes. Not exploitable on 0.36.0+, which strips links with non-http/https/mailto schemes and adds a script-src 'none'; object-src 'none' CSP.

Impact

This is a genuine but moderate-priority issue, not a drop-everything emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, score 5.3) describes a network-reachable, low-complexity, unauthenticated flaw that nonetheless REQUIRES victim interaction (UI:P) - specifically the victim must open the attacker's SVG link AND click the rendered table header, a two-step interaction that materially lowers real-world exploitability. Impact is limited (VC:L/VI:L/VA:N with subsequent-system SC:L/SI:L), consistent with reflected XSS executing in the Kroki origin rather than full system compromise. No EPSS score and no CISA KEV entry were supplied, and there is no indication of active exploitation; the only exploitation signal is a detailed, author-reproduced proof-of-concept embedded in the GHSA advisory (confirmed working in Chromium and Firefox). The vuln.today decision label is 'this_month' (not act_now/emergency), which aligns with the picture: a confirmed, PoC-backed, click-dependent XSS in a self-hosted developer tool - real and patchable, but dependent on social engineering and limited in blast radius. The main caveat is that impact severity depends entirely on what else is hosted on the Kroki origin (shared-origin data, cookies, session context); on a dedicated, isolated Kroki host the practical impact is lower than on a Kroki deployment co-located with sensitive applications.

Exploit ScenarioDerived

An attacker crafts a DBML diagram whose table 'url' (or 'headercolor', or a TableGroup 'color') setting contains a javascript: payload, encodes it into Kroki's standard compressed GET format, and sends the resulting /dbml/svg/{encoded} link to a victim. When the victim opens the SVG as a document and clicks the table header rendered as a hyperlink, the attacker's JavaScript executes in the Kroki origin. A full, author-reproduced proof-of-concept (including a ready-to-paste URL and a Python generator) is published in the GHSA advisory and was confirmed working in Chromium and Firefox, including when the SVG is embedded via <iframe> or <object>.

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 14, 2026

Reflected cross-site scripting in Kroki's /dbml/svg endpoint before 0.36.0 allows unauthenticated attackers to craft a DBML diagram whose table header link uses a javascript: scheme, so a victim who opens the generated SVG and clicks the header runs attacker script in the Kroki origin. The same link injection is reachable through table headercolor and TableGroup color settings, and the impact is bounded by what the serving origin exposes. Kroki 0.36.0 fixes the issue by removing links with non-http/https/mailto schemes and adding a restrictive CSP; a reproducible public proof-of-concept is documented in the vendor advisory, and no CISA KEV entry or EPSS score is supplied.

RemediationAI

Upgrade to Kroki 0.36.0 (release tag v0.36.0; fix commit b57e1bdc39df9521b249db0dbd56c5e0a8b7e33d), which removes links whose scheme is not http, https or mailto (relative links remain allowed) and sends Content-Security-Policy: script-src 'none'; object-src 'none' on every response, configurable with KROKI_CONTENT_SECURITY_POLICY. For Maven deployments, io.kroki:kroki-server is fixed in 0.36.0. If upgrading immediately is not possible, the vendor advisory lists adding a Content-Security-Policy: script-src 'none' header to Kroki responses at a reverse proxy as a defense-in-depth workaround (it may affect legitimate scripts served from that origin) or blocking the /dbml routes (which disables DBML diagram rendering); the advisory states CSP should not replace URL validation. See https://github.com/yuzutech/kroki/security/advisories/GHSA-fr36-wcx2-7gfq and https://github.com/yuzutech/kroki/releases/tag/v0.36.0.

Affected VersionsENISA

kroki 0 <0.36.0

Affected Packages

euvd kroki fix: 0.36.0

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

Kroki is a diagram-rendering service that accepts compressed GET payloads; the /dbml/svg route decodes DBML and passes it through the packaged dbml executable and @softwaretechnik/dbml-renderer. In TableNameRenderer.toDot(), the attacker-controlled table url setting is interpolated directly into a Graphviz HTML-like label HREF, and Viz.js converts that to an SVG hyperlink without validating the URL scheme, so a javascript: value is accepted like https:. The advisory also shows that table headercolor is inserted into BGCOLOR and TableGroup color into a cluster color attribute, so a double quote can close the attribute and inject an HREF or URL attribute. This is CWE-79: the renderer fails to neutralize input in the generated SVG, which Kroki returns as image/svg+xml, and the advisory states the DBML integration does not depend on KROKI_SAFE_MODE, so default SECURE-mode deployments are affected. The 0.36.0 fix applies a SAFE_URL regex that allows absolute http/https/mailto or relative references and strips other href/xlink:href attributes from the SVG, plus a Content-Security-Policy of script-src 'none'; object-src 'none'.

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 (VulnCheck) PRIMARY 5.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
vuln.today AI 6.1 MEDIUM

Network-reachable unauthenticated reflected XSS (AV:N/AC:L/PR:N) requiring a victim click (UI:R); script runs in the SVG document origin so S:C, with limited C:L/I:L and no availability impact.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

Kroki before 0.36.0 contains a reflected cross-site scripting vulnerability in the /dbml/svg endpoint that allows unauthenticated attackers to inject javascript: hyperlinks by supplying crafted DBML table url, headercolor, or TableGroup color settings. Attackers can send a crafted SVG link that, when opened and the table header clicked, executes attacker JavaScript in the Kroki origin.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Low
niche self-hosted open-source diagram-rendering service, limited production footprint
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

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