Vulnerability record · CVE-2026-42138 · published 4 May 2026
CVE-2026-42138: Langgenius dify cross-site scripting vulnerability
LLanggenius · Dify
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.
Description
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.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/langgenius/dify/releases/tag/1.13.1 | Release Notes |
| https://github.com/langgenius/dify/security/advisories/GHSA-cg94-8v83-7hjj | ExploitVendor Advisory |
| https://github.com/langgenius/dify/security/advisories/GHSA-cg94-8v83-7hjj | ExploitVendor Advisory |
Track CVE-2026-42138 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2026-42138), CISA KEV, FIRST EPSS (scores of 2026-09-29). This page is refreshed as NVD updates the record.