Cross-site scripting in Dify - CVE-2026-26023
Published: July 27, 2026
Dify
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary JavaScript in the victim's browser.
The vulnerability exists due to cross-site scripting in the chat frontend markdown code block component when rendering user-supplied or LLM-supplied echarts content. A remote attacker can supply a specially crafted echarts payload to execute arbitrary JavaScript in the victim's browser.
If the payload is saved in chat history, the issue can be triggered as stored XSS for later viewers; otherwise, it is reflected DOM XSS for the current viewer.