All vulnerabilities

Servers and applications

GHSA-9c9q-5rj5-mjj2

Cross-Tenant File Preview via Unscoped Console `file_id`

Severity
High 7.7
Published
15 Jul 2026
Last changed
15 Jul 2026
Added to UpHeron
3 Nov 2026
Fixed in
1.14.2
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Sources
Project advisories (GitHub)

Description

Any authenticated console user can read another tenant's uploaded document content through /console/api/files//preview if they know the victim file_id. The route calls FileService.get_file_preview() with no tenant or ownership check.

The console preview endpoint is authenticated, but it resolves UploadFile by raw file_id only. UploadFile is tenant-owned, yet the preview path does not verify upload_file.tenant_id == current_tenant_id.

The victim upload response returned a tenant-owned file ID:

The attacker preview request returned the victim file contents:

  • Cross-tenant disclosure of uploaded document contents
  • Any known file_id is enough to retrieve another tenant's preview text through the console API
From langgenius/dify's security advisory.

Affected software

SoftwareAffected versions
DifyServers and applications · github:langgenius/dify
  • Every version before 1.14.2

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