CVE Catalog

CVE-2026-42138

MediumCVSS 6.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.24%

14th percentile - higher than 14% of all known CVEs

Summary

Dify prior to version 1.13.1 allows any unauthenticated user to upload an SVG file containing XSS via the POST /api/files/upload endpoint. The POST /v1/files/upload endpoint, which requires application API authentication, is also vulnerable. The issue has been patched in version 1.13.1.

Risk Assessment

An uploaded SVG with embedded XSS can execute in other users' browsers, enabling session or data theft. The risk applies to both publicly exposed and internal deployments.

Recommendation

Upgrade Dify to version 1.13.1 or later. Until then, consider restricting SVG uploads and validating uploaded content.

Other vulnerabilities in Dify

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS