Skip to content
MediumVulnerabilityLLM-specific

CVE-2026-21866: Dify stored XSS through Mermaid diagram rendering in chats

Identifier
CVE-2026-21866
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

Dify, an open-source LLM app development platform, is affected by CVE-2026-21866 in versions prior to 1.11.2. Its default Mermaid configuration uses securityLevel: loose when rendering Mermaid diagrams in chats, so a stored XSS flaw lets potentially unsafe content execute.

Mitigation

This vulnerability is fixed in 1.11.2.