Quick answers
- Is CVE-2026-42138 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-42138 being exploited in the wild.
- How severe is CVE-2026-42138?
- Medium severity, with a CVSS score of 6.1, published 4 May 2026.
- Which products and versions are affected?
- LangGenius Dify < 1.13.1.
- Is there a fix for CVE-2026-42138?
- A patch was published on 2026-03-17: Version 1.13.1 released with fixes Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-42138 attacked?
- It is attacked over the network, in a network appliance.
- Am I affected by CVE-2026-42138?
- Check whether you run Langgenius Dify. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
A stored Cross-Site Scripting (XSS) vulnerability exists in Dify's file upload functionality. The application fails to properly sanitize or neutralize malicious JavaScript embedded within SVG files uploaded via the 'POST /api/files/upload' (unauthenticated) and 'POST /v1/files/upload' (authenticated) endpoints. When a victim accesses the 'source_url' returned after the upload, the embedded script executes within the context of the victim's browser session. This can be leveraged to steal session tokens from Local Storage or perform unauthorized API actions. The issue is resolved in version 1.13.1.
Affected products
- LangGenius Dify < 1.13.1
Timeline
- 2026-04-20: advisory: GitHub Security Advisory GHSA-cg94-8v83-7hjj published
- 2026-05-04: disclosed: CVE-2026-42138 published to NVD
- 2026-03-17: patched: Version 1.13.1 released with fixes