Skip to main content
Menu
Advisories

apoc.vectordb procedures send credentials stored via apoc.vectordb.configure to caller-supplied endpoints

GHSA-5W26-PCXF-9FJ9Published Updated GitHub

Description

Impact

The admin-only procedure apoc.vectordb.configure stores a host, credentials and mapping for a vector database (Pinecone, Qdrant, Chroma, Milvus, Weaviate) under a name in the system database. The apoc.vectordb.<vendor>.* procedures (e.g. info, query, get, upsert) can then reference this stored configuration by its name.

When such a procedure was called with a stored configuration name and a caller-supplied endpoint in the configuration map, the caller's endpoint replaced the stored host, while the stored credentials were still attached to the request.

As a result, any authenticated user allowed to execute these procedures and knowing (or guessing) the name of a stored configuration could make the server send the stored vector database credentials to a host under their control. The user does not need to be able to run apoc.vectordb.configure or to read the system database. The leaked credential is valid outside of Neo4j and can be used against the vector database provider.

Exploitation requires an authenticated Neo4j session with permission to execute the affected procedures (granted to PUBLIC by default in Neo4j Enterprise Edition) and at least one configuration stored via apoc.vectordb.configure. Configuration names are not listed to non-admin users, but are chosen by administrators and may be guessable.

Patches

Fixed in APOC Extended 5.26.5 (#4591). Stored credentials are now only sent to an endpoint with the same scheme, host and port as the stored host. Otherwise, or if no host is stored, the procedure fails before any request is sent. Calls with a literal host and explicit credentials are unchanged.

The 2026.x releases (2026.01.0 to 2026.04.0) are affected; the fix is in 2026.10.0.

Workarounds

If you cannot upgrade:

  • Do not store credentials via apoc.vectordb.configure; pass them explicitly in each call instead.
  • Or restrict who can run the affected procedures, e.g. with DENY EXECUTE PROCEDURE apoc.vectordb.* ON DBMS TO <role> or via the procedures allowlist.
  • If untrusted users had access to these procedures, rotate the stored vector database credentials.

For more information

If you have any questions or comments about this advisory:

Credits

We want to publicly recognise the contribution of Amitay Shahar.

Affected versions

References

GitHub · neo4j-contrib/neo4j-apoc-procedures