Zylon PrivateGPT CORS Misconfiguration Vulnerability Allowing Cross-Domain Data Access

Vulnerability

A vulnerability exists in Zylon PrivateGPT versions through 0.6.2, where the CORS settings in the 'settings.yaml' file are improperly configured to allow all origins. This permissive policy enables any external domain to interact with the application, potentially leading to the unauthorized extraction of sensitive user data, such as credentials and private documents. The vulnerability can be exploited remotely and affects all deployment environments, including internal networks.

Impact

Exploitation of this vulnerability could result in the unauthorized access and leakage of sensitive user data, including credentials and private documents, from PrivateGPT.

Reproduction

To reproduce this vulnerability, upload sensitive documents or credentials to PrivateGPT. Then, host a malicious script that exploits the CORS misconfiguration by interacting with PrivateGPT's API. This can be done by modifying the 'Origin' request header to bypass the same-origin policy, allowing the extraction of sensitive information from the application.

Remediation

Users are advised to update to a version of PrivateGPT that addresses this CORS misconfiguration. Additionally, implement secure deployment practices that include strict network segmentation and access controls.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
7.7
remediation
0.0
relevance
0.0
threat
6.4
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.