PrivateGPT puts document collections behind an application API
PrivateGPT is an open-source application API for messages, document ingestion, retrieval, citations, tools, and custom workflows. It can run above an OpenAI-compatible model server while keeping the document collection and orchestration layer under the operator's control. The deployment is attractive to teams that want private retrieval, but the phrase "private" describes the network and model arrangement, not an automatic access-control guarantee.
The measured set
A count-only ZoomEye query for title="PrivateGPT" || http.body="PrivateGPT" returned 481 observations on 25 November 2026 at 07:48 Asia/Shanghai. The scope was sub_type=all, page 1, page size 1. The query identifies pages with the product name or body text. It does not separate a running API from a tutorial, a GitHub page, or a deployment that sits behind an external proxy.
The product's documented workbench runs on port 8080 and can be configured with an API base URL and an optional bearer token. The API reference exposes artifact ingestion with a collection name and metadata. Those facts make two questions useful for any owned match: is the workbench public, and does the API enforce a token or a trusted network boundary before ingestion or retrieval?
What the data can expose
PrivateGPT collections can contain PDFs, text, metadata, URIs, and processed artifacts. A query can return citations and context from those documents. The model server may receive prompts and retrieved passages, so the data path extends beyond the PrivateGPT process. Ingestion can add attacker-controlled content to a collection or create metadata that later appears in citations.
A public demo with public documents is different from a production workspace. The production API needs collection-level authorization, not only a login screen. A user who can name a collection should be authorized for that collection before the server searches it. An ingestion endpoint should validate the file type, size, source URI, and target collection. If tools or code execution are enabled, the allowed tool list and network egress become part of the security boundary.
Remediation
Put the workbench and API behind the organization's identity proxy. Require bearer authentication where supported and terminate TLS at the application or a trusted proxy. Do not expose the model server directly to the same users who use the retrieval UI. Separate API credentials by collection or tenant where the deployment supports it, and rotate them after any public exposure.
Review the source-document inventory. Search ingestion logs for collection names that do not belong to the authenticated account. Check for unexpected URI ingestion, large files, repeated embeddings, and model calls from a source that does not normally use the service. If the API was public, inspect whether document content was embedded into model prompts or returned through citations.
After the change, test an unauthenticated workbench request, a tokenless API request, and a token for the wrong collection. Compare the responses with the intended policy. Then test a harmless ingestion into the correct collection and verify that the result is visible only to the expected account. Keep the failing responses as evidence that the boundary is functioning.
References
- PrivateGPT introduction
- PrivateGPT API ingestion
- PrivateGPT artifact ingest reference
- ZoomEye count-only query:
title="PrivateGPT" || http.body="PrivateGPT"; 481;sub_type=all; page 1; page size 1; 2026-11-24T23:48:17Z.
Top comments (0)