CVE-2026-21866: Dify - Stored XSS in chat

Published Mar 3, 2026
·
Updated

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.

Affected Software

2 affected components
Dify dify<1.11.2
Dify dify<1.11.2

Event History

Mar 3, 2026
CVE Published
via MITRE·09:42 PM
Data Sourced
via MITRE·09:42 PM
DescriptionWeakness
Data Sourced
via NVD·10:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-21866?

CVE-2026-21866 is classified as a moderate severity vulnerability due to the potential for stored XSS attacks.

2

How do I fix CVE-2026-21866?

To fix CVE-2026-21866, upgrade Dify to version 1.11.2 or later where the issue has been resolved.

3

What is stored XSS as referenced in CVE-2026-21866?

Stored XSS is a type of vulnerability where malicious scripts are injected into a web application and stored on the server, affecting all users accessing the data.

4

In which versions of Dify is CVE-2026-21866 found?

CVE-2026-21866 is found in Dify versions prior to 1.11.2.

5

How does CVE-2026-21866 impact users of Dify?

CVE-2026-21866 allows attackers to inject scripts through chat functionalities, potentially compromising user security.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203