Skip to main content

Kroki CVE-2026-129484

| EUVDEUVD-2026-126081 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-15 VulnCheck GHSA-3596-jrj6-mf2p
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 GET /goat/svg URL with malicious color option
  2. Delivery
    Deliver link to victim via phishing
  3. Exploit
    Option value closes <style>, injects <script>
  4. Execution
    SVG opened as document, script runs in Kroki origin
  5. Impact
    Session theft or phishing navigation in Kroki context

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 an attacker to lure a victim into opening a crafted Kroki /goat/svg GET URL whose svg-color-dark-scheme or svg-color-light-scheme query parameter contains '</style><script>...'; the GoAT SVG renderer interpolates these color options verbatim into a <style> element with no validation or XML escaping. It works against the default configuration of Kroki <= 0.35.0 with no authentication, no POST body, no custom headers, and does not require KROKI_SAFE_MODE or any optional feature to be changed. Limiting factors: user interaction is required (UI:P) - the victim must open the link so the SVG is parsed as a document or embedded in an iframe/object context; per the advisory the script does NOT execute when the same SVG is loaded via an <img> element, so sites embedding Kroki output as images are not affected. The vendor notes 0.36.0 both restricts these options to CSS color values (rejecting others with HTTP 400) and, as defense in depth, adds a Content-Security-Policy: script-src 'none'; object-src 'none' header; upgrading to 0.36.0 is the stated fix, with a reverse-proxy CSP header or blocking /goat routes given as interim workarounds.

Impact

This is a genuine but moderate-severity issue, not a drop-everything emergency. The input CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, score 5.3) describes an unauthenticated, network-reachable reflected XSS that requires victim interaction (opening a crafted link), with only Low confidentiality/integrity impact on both the vulnerable and a subsequent system - consistent with script execution confined to the Kroki origin rather than full host compromise. The GHSA advisory provides a fully developed, author-verified proof of concept (a self-contained malicious URL plus a Python generator), tested against the unmodified Kroki 0.35.0 Docker image with execution confirmed in both Chromium and Firefox, so exploitability is well established and low-effort. However, there is no CISA KEV listing and no EPSS score in the provided data, so there is no evidence of active in-the-wild exploitation - this is 'exploit code demonstrated' rather than 'exploited.' The vuln.today decision label is 'this_month' (patch-promptly, not act_now/emergency), which aligns with the picture: a confirmed, easily reproduced XSS in a self-hosted developer tool, worth patching on a normal maintenance cadence rather than as an incident. No key signals conflict; the main missing signals are EPSS probability and any exploitation telemetry.

Exploit ScenarioDerived

An attacker crafts a single Kroki GET URL (e.g. /goat/svg/...?svg-color-dark-scheme=red}%20</style><script>...</script>...) that closes the generated SVG's <style> element and injects a <script> element, then sends it to a victim via phishing. When the victim opens the link so the SVG renders as a document (or in an iframe/object context), the attacker's JavaScript executes in the Kroki origin. A working proof of concept is published in the vendor's GHSA advisory and was verified by the reporter against Kroki 0.35.0 in Chromium and Firefox.

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

Reflected cross-site scripting in the Kroki diagram server's GoAT SVG renderer (all versions up to and including 0.35.0) lets unauthenticated remote attackers execute JavaScript in the Kroki origin by supplying a crafted svg-color-dark-scheme or svg-color-light-scheme query parameter to a GET /goat/svg URL. Because those option values are interpolated verbatim into an SVG <style> element, a value containing </style><script>...</script> breaks out of the CSS and injects an executable script; the victim must open the crafted link (or load it in an iframe/object context), and the same SVG does not execute when loaded through an <img> element. The vendor security advisory includes a detailed, reproducible proof-of-concept against the stock 0.35.0 Docker image; no confirmed active exploitation or CISA KEV listing is known, and the issue is rated moderate severity with user interaction required.

RemediationAI

Vendor-released patch: upgrade to Kroki 0.36.0 (https://github.com/yuzutech/kroki/releases/tag/v0.36.0, fix commit a0a1435cc38eb7b258c555a883b7687424ad6784), which restricts svg-color-dark-scheme and svg-color-light-scheme to CSS color values such as #FFF, red, or rgb(0, 0, 0) and rejects anything else with HTTP 400, and additionally sends Content-Security-Policy: script-src 'none'; object-src 'none' on every response (configurable via KROKI_CONTENT_SECURITY_POLICY) so an injected script cannot run on the Kroki origin. The vendor states upgrading to 0.36.0 as the workaround path otherwise: add a Content-Security-Policy: script-src 'none' header to Kroki responses at a reverse proxy (side effect: blocks any legitimate script execution on the Kroki origin, which the vendor itself adopts), or block the /goat routes entirely (side effect: disables GoAT diagram rendering for legitimate users). Note that embedding sites that render Kroki output through <img> elements do not execute the injected script, per the advisory.

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 Java (Vert.x) diagram rendering server that shells out to external renderers, including GoAT for ASCII-art-to-SVG conversion. The root cause is CWE-79 (improper neutralization of input during web page generation): in GoAT v0.5.1, svg/csshelp.go's ColorsOnlyCssFileContent() builds a stylesheet using raw fmt.Sprintf interpolation of the light- and dark-scheme color values, and those values are emitted as XML text content inside an SVG <style> element without any CSS-color validation or XML escaping. On the Kroki side, server/src/main/java/io/kroki/server/service/Goat.java forwarded both svg-color-dark-scheme and svg-color-light-scheme straight from the request's diagram options to the GoAT process arguments, and DiagramHandler.getOptions() accepts diagram options from GET query parameters - turning an unsafe renderer output into a reflected, victim-deliverable URL. The vulnerable code path is reachable in Kroki's default configuration, with no authentication, no POST body, no custom headers, and without enabling KROKI_SAFE_MODE or any optional feature. The affected package is maven io.kroki:kroki-server (CPE cpe:2.3:a:yuzutech:kroki:*), vulnerable through 0.35.0. The upstream 0.36.0 fix validates both options against a CSS-color-only pattern ([#a-zA-Z0-9(),.%/ -]{1,64}) and returns HTTP 400 otherwise, plus adds a Content-Security-Policy: script-src 'none'; object-src 'none' response header as defense in depth; the same flaw was also reported upstream to GoAT (blampe/goat#55).

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

Unauthenticated network-delivered reflected XSS needing the victim to open the link (UI:R); script runs in the Kroki origin so scope changes (S:C) with low confidentiality/integrity impact 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 that allows unauthenticated attackers to inject scripts via unvalidated svg-color-dark-scheme and svg-color-light-scheme options. Attackers can craft a GET /goat/svg URL whose option value closes the SVG style element, executing JavaScript in the Kroki origin when victims open it.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Low
niche self-hosted diagram-as-code service used in dev/docs toolchains
Exploit
POC
Public exploit code exists
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High

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

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: +20
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