CVE-2026-21866
Medium
Description
Dify is an open-source LLM app development platform. Prior to 1.11.2, Dify is vulnerable to a stored XSS issue when rendering Mermaid diagrams within chats. This occurs because Dify’s default Mermaid configuration uses securityLevel: loose, which allows potentially unsafe content to execute. This vulnerability is fixed in 1.11.2.
SeverityMedium
CVSS5.4
Exploit probability—
ProductDify
PublishedMar 3, 2026
First seenMar 3, 2026
Weakness typeCWE-79Cross-site scripting (XSS)
How to fix
Update
- dify dify1.11.2 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| dify dify | v < 1.11.2 | 1.11.2 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.