Dify — Xss (CVE-2026-42138)
Date: 2026-05
Affected: langgenius/dify
Attack vector: xss
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2026-34082
CVE-2026-42138
CWE: CWE-284
CWE-79
CWE-863
CVSS: 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)

Dify is an open-source LLM app development platform. Prior to version 1.13.1, using the method POST /api/files/upload, any unauthenticated user can upload an SVG file with XSS. The method POST /v1/files/upload, which requires authentication through the application API, is also vulnerable. This issue has been patched in version 1.13.1.


Mitigations:

Architectural layers (MAESTRO):