AI Review Ready
Home / Guides / Chroma security checklist
Guide · Chroma · self-hosted

Chroma security checklist: is your vector database open to the internet?

UpGuard found 1,170 Chroma databases reachable from the internet, 406 of them leaking data. Most were not hacked; they were simply started on a public interface without authentication. Here is how to check yours in five minutes.

Why it happens

A Chroma server listens on port 8000 by default. Started with --host 0.0.0.0 on a cloud VM, or published with Docker's -p 8000:8000, it accepts connections from anywhere the network allows. Unless authentication is configured, anyone who finds it can list collections and read every document and its metadata. Internet-wide scanners find open ports within hours.

1. Check from outside your network

From a machine that is not inside your VPC or office network (a phone hotspot works), against your own server:

# Chroma 1.x uses the v2 API; older versions use /api/v1/...
curl -s http://YOUR_SERVER_IP:8000/api/v2/heartbeat
curl -s http://YOUR_SERVER_IP:8000/api/v2/tenants/default_tenant/databases/default_database/collections

If the heartbeat answers, the port is reachable. If the collections call returns a list without any credentials, your data is readable by anyone. Only test servers you own or have permission to test.

2. Docker publishing bypasses ufw

A common surprise: on Linux, Docker writes its own iptables rules for published ports, and traffic to them skips ufw's rules. So ufw deny 8000 does not protect a container started with -p 8000:8000. Bind the published port to localhost instead:

# only reachable from the host itself (put your app or a reverse proxy in front)
docker run -d -p 127.0.0.1:8000:8000 -v ./chroma-data:/data chromadb/chroma

In docker compose, write "127.0.0.1:8000:8000" under ports, or drop ports entirely and let your app reach Chroma over the internal compose network.

3. Put authentication in front

  • Enable Chroma's built-in token or basic authentication. The setting names have changed between Chroma versions, so follow the auth docs for the exact version you run, and confirm with the curl check above that unauthenticated requests now fail.
  • Or keep Chroma private and put it behind a reverse proxy or your own API that authenticates every request.
  • Restrict the cloud security group or firewall to your app servers' addresses.

4. Tenants and databases are not a security boundary by themselves

Chroma organises data into tenants, databases and collections. Those names separate data logically, but without authentication and authorisation configured, anyone who can reach the server can address any of them. If several customers share one Chroma server, enforce the tenant choice in your own API, from the logged-in session, and test it with two accounts.

5. Check what is stored

Exposure is worse when chunks hold secrets or personal data. Export a collection and scan it:

import chromadb, json
client = chromadb.HttpClient(host="localhost", port=8000)
col = client.get_collection("docs")
data = col.get(include=["documents", "metadatas"])
json.dump(data, open("chunks.json", "w"))

Drop chunks.json into the RAG chunk scanner. It recognises the Chroma get() format and runs in your browser.

Checklist

  • Port 8000 not reachable from the internet (checked from outside).
  • Docker ports bound to 127.0.0.1, or not published at all.
  • Authentication on, and unauthenticated requests rejected.
  • Firewall / security group limited to app servers.
  • Tenant selection enforced in your API and tested with two accounts.
  • Stored chunks scanned for secrets, personal data and planted instructions.