CVE-2026-42138

MEDIUM CVSS 4.0: 6.9 EPSS 0.24%
Updated Oct 26, 2026
Langgenius
Parameter Value
CVSS 6.9 (MEDIUM)
Affected Versions before 1.13.1
Fixed In 1.13.1
Type CWE-79 (Cross-Site Scripting (XSS))
Vendor Langgenius
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
None
No data leak
Integrity
Low
Partial data modification
Availability
None
No disruption

CVSS Vector v4.0

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Langgenius Dify
cpe:2.3:a:langgenius:dify:*:*:*:*:*:node.js:*:*
— 1.13.1