CVE-2026-42138 Details
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.
A stored cross-site scripting vulnerability has been identified in Dify, an open-source platform for developing applications with large language models. This issue affects versions prior to 1.13.1. The vulnerability arises from the ability of any unauthenticated user to upload an SVG file containing malicious scripts through the `POST /api/files/upload` endpoint. Although this endpoint does not require authentication, the `POST /v1/files/upload` method, which is authenticated, is also susceptible to the same issue. Once uploaded, the SVG file can execute scripts when accessed, leading to session theft or performing actions on behalf of the user.
Users can upgrade to Dify version 1.13.1 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 4, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/langgenius/dify/security/advisories/GHSA-cg94-8v83-7hjj | CISA-ADP | ExploitVendor Advisory |
| https://github.com/langgenius/dify/releases/tag/1.13.1 | [email protected] | Release Notes |
| https://github.com/langgenius/dify/security/advisories/GHSA-cg94-8v83-7hjj | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| langgenius dify | < 1.13.1 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 26, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 11, 2026 | Initial Analysis | [email protected] |
| May 4, 2026 | CVE Modified | CISA-ADP |
| May 4, 2026 | New CVE Received | [email protected] |