Insufficiently protected credentials in the apoc.ml.* procedures in Neo4j APOC Extended before 5.26.5 and 2026.01.0 before 2026.10.0 allows an authenticated user who is permitted to execute these procedures to obtain server-configured API keys and AWS credentials via a caller-supplied endpoint or path configuration option that directs outbound requests to a host under the user's control.
Do not configure apoc.openai.key, apoc.aws.key.id or apoc.aws.secret.key server-side; pass credentials explicitly in each call instead. Alternatively, restrict who can run the affected procedures, for example with DENY EXECUTE PROCEDURE apoc.ml.* ON DBMS TO <role>, or via the procedures allowlist. If untrusted users had access to these procedures, rotate the configured provider API keys and AWS credentials.
Upgrade APOC Extended to 5.26.5 or 2026.10.0 or later. After the upgrade, a server-held API key is only sent to the provider default endpoint or to the endpoint configured via apoc.ml.openai.url, and server-held AWS credentials only sign HTTPS requests to Bedrock or SageMaker service hosts. Deployments that combine a server-held key with a caller-supplied endpoint (for example a proxy or a self-hosted OpenAI-compatible server) must configure that endpoint via apoc.ml.openai.url or pass the credentials explicitly in the call.