CVE-2026-21866
JSON

5.1medium

Dify - Stored XSS in chat

Severity
5.1medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.25% (higher than 17% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

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.

Affected

Product or packageVersionsReported by
langgenius dify< 1.11.2CVE List
dify difybefore 1.11.2NVD

All scores

GitHub_M5.1medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Dify es una plataforma de desarrollo de aplicaciones LLM de código abierto. Antes de la 1.11.2, Dify es vulnerable a un problema de XSS almacenado al renderizar diagramas Mermaid dentro de los chats. Esto ocurre porque la configuración predeterminada de Mermaid de Dify utiliza securityLevel: loose, lo que permite la ejecución de contenido potencialmente inseguro. Esta vulnerabilidad está corregida en la 1.11.2.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-21866 changed 2026-03-04CVE Terms of Use
NVDCVE-2026-21866 changed 2026-06-17Public domain