XSS Vulnerability in Dify Open-Source LLM App Development Platform
CVE-2026-42138
6.9MEDIUM
What is CVE-2026-42138?
The Dify platform, a popular open-source LLM application development tool, is susceptible to a Cross-Site Scripting (XSS) vulnerability found in the file upload functionality. Any unauthenticated user has the ability to upload malicious SVG files via the POST /api/files/upload endpoint. Additionally, another endpoint, POST /v1/files/upload, which does require authentication, also displays the same vulnerability. This poses significant security risks as it could lead to unauthorized access and data compromise. The issue has been mitigated in the latest version, 1.13.1, where appropriate patches have been applied to enhance the platform's security.
Affected Version(s)
dify < 1.13.1
