Over 1 million AI applications may be affected
Researchers at Zafran Security have disclosed a set of four vulnerabilities, collectively named "DifyTap," in Dify, a widely used open-source AI application development platform. These flaws pose a significant threat to the confidentiality of data within the more than one million AI applications built on the platform. The most severe issues, CVE-2026-41947 and CVE-2026-41948, are rated critical and enable attackers to bypass tenant isolation controls in Dify's cloud environment. This could allow a malicious user to access private AI chat logs, view and use documents uploaded by other tenants, and in some cases, make unauthenticated requests to internal Dify services. The findings highlight the growing security risks in the AI supply chain, where vulnerabilities in orchestration platforms can undermine the security of the AI models they manage. Dify has released patches for the flaws in version 1.14.2.
The DifyTap disclosure includes four distinct vulnerabilities, with the most critical ones affecting tenant isolation:
Additionally, the research highlighted that Dify was using a version of the PDFium library vulnerable to CVE-2024-5846, a use-after-free vulnerability, for over 18 months. This could have allowed an attacker to achieve code execution by uploading a malicious PDF file.
The core of these vulnerabilities lies in insufficient access control and authorization checks within the Dify platform, particularly in how it handles multi-tenancy and file management. This is a classic example of T1087.004 - Valid Accounts: Cloud Accounts being abused, where a low-privileged but valid account in one tenant can access resources from another.
The ability to access data from other tenants is a form of T1530 - Data from Cloud Storage Object. The attackers are not breaking the underlying cloud storage security, but rather exploiting logic flaws in the application layer (Dify) that sits on top of it. The vulnerability where a user could attach another user's file is an Insecure Direct Object Reference (IDOR) flaw, where the application fails to verify that the user is authorized to access the requested object (in this case, a file).
The unauthenticated access to internal endpoints (CVE-2026-41948) is a form of Server-Side Request Forgery (SSRF) or improper network segmentation, allowing an external actor to interact with services that should only be accessible internally. This could be used for T1595 - Active Scanning of the internal network.
The impact of the DifyTap vulnerabilities is severe, particularly for organizations using Dify's multi-tenant cloud service. The breakdown of tenant isolation is one of the most critical failures for a cloud provider.
Organizations using Dify should review historical logs for signs of exploitation:
log_sourceDify Application Logsapi_endpointDify Plugin Daemon endpointslog_sourceCloud Storage Access LogsD3-DA - Dynamic Analysis)CVE-2026-41947, CVE-2026-41949, and CVE-2026-41950. (D3FEND: D3-SU - Software Update)D3-NI - Network Isolation)Updating to Dify version 1.14.2 or later is the primary mitigation to fix the flawed access control logic.
Mapped D3FEND Techniques:
For self-hosted instances, proper network segmentation can prevent unauthenticated access to internal service endpoints.
Mapped D3FEND Techniques:
Ensuring strong logical isolation between tenants at the application layer is fundamental to cloud security.
Mapped D3FEND Techniques:
The most critical action for all Dify users is to immediately upgrade their instances to version 1.14.2 or a later version. This update directly addresses the insecure direct object reference and other access control flaws that lead to cross-tenant data exposure. For Dify Cloud users, the platform provider is responsible for this update. For self-hosted users, this is an urgent, user-initiated action. Before updating, perform a full backup of your Dify instance's data and configuration. After applying the update, verify that the system is running the new version and conduct basic functional testing to ensure your AI applications are still operating correctly. Do not delay this patch, as the public disclosure of these vulnerabilities means that attackers will soon begin scanning for unpatched instances.
For organizations self-hosting the Dify platform, proper network isolation is a key compensating control, especially to mitigate threats like CVE-2026-41948 (unauthenticated access to internal daemons). Ensure that only the main web interface of the Dify application is exposed to the internet. All other internal components, such as the Plugin Daemon, database connections, and other microservices, must be placed in a private subnet. Use cloud security groups or traditional firewalls to create strict rules that deny all inbound traffic to these internal components from any source other than the Dify web front-end. This prevents an external attacker from directly reaching and exploiting potential vulnerabilities in these backend services.
To detect potential exploitation of these or similar future flaws, organizations should implement resource access pattern analysis on their Dify application logs. This involves establishing a baseline of normal access patterns. For example, a user in Tenant A should only ever access file IDs associated with Tenant A. Ingest Dify's API and application logs into a SIEM or log analytics platform. Create detection rules that trigger an alert whenever a user's authenticated session attempts to access a resource (like a file or conversation) that is tagged with a different tenant ID. This behavioral analysis can serve as a powerful detection mechanism for any breakdown in tenant isolation logic, providing an early warning of a data exposure incident.
Zafran Security discloses the 'DifyTap' vulnerabilities.

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.
Help others stay informed about cybersecurity threats
Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.
Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.
Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.
Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.
Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.