Dify CORS Misconfiguration Vulnerability in the Setup API Endpoint

Vulnerability

A Cross-Origin Resource Sharing (CORS) misconfiguration vulnerability exists in Dify version 1.9.1, specifically within the '/console/api/setup' endpoint. This vulnerability arises from an insecure CORS policy that indiscriminately reflects any Origin header and allows 'Access-Control-Allow-Credentials: true'. As a result, arbitrary external domains can make authenticated requests to the endpoint.

Impact

Exploitation of this vulnerability could lead to unauthorized access to sensitive installation and setup information by allowing external domains to make authenticated requests to the vulnerable endpoint.

Added: Dec 18, 2025, 5:15 PM
Updated: Dec 18, 2025, 5:15 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
4.0
remediation
0.0
relevance
1.5
threat
0.0
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.