All vulnerabilities

Servers and applications

CVE-2026-42138

Stored XSS via SVG-file upload

Severity
Medium 6.9
Published
20 Apr 2026
Last changed
26 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
1.13.1
Exploit chance
0.2% in the next 30 daysHigher than 14% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · No login needed · No user action needed
Attacker can
Change some data
CVSS vector
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:X/V:X/RE:X/U:X
Also known as
GHSA-cg94-8v83-7hjj
Sources
NVD, Project advisories (GitHub)

Description

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.

Performing actions on behalf of a user; session theft when AT stored in Local Storage (or in cookie w/o HttpOnly), etc.

From langgenius/dify's security advisory.

Affected software

SoftwareAffected versions
DifyServers and applications · cpe:a:langgenius:dify
  • Every version before 1.13.1
DifyServers and applications · github:langgenius/dify
  • Every version before 1.13.1

About Dify

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

From its GitHub repository.
GitHub stars
161,177GitHub, 15 Nov 2026
Forks
25,501GitHub, 15 Nov 2026
Latest release
1.19.0GitHub, 15 Nov 2026
Released
4 Nov 2026GitHub
First published on GitHub
12 Apr 2023GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-42138
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-42138
  • GitHub Advisory Database https://github.com/advisories/GHSA-cg94-8v83-7hjj
  • github.com https://github.com/langgenius/dify/security/advisories/GHSA-cg94-8v83-7hjj