# vector-db-auth-isolation-v2

> vector-db-auth-isolation-v2: 11 Keryn rules for python, typescript, javascript (10 warning, 1 info).

Source: https://keryn.dev/rules/vector-db-auth-isolation-v2/

11 rules · Keryn Software Licence · rules 0.8.0 · [all packs](https://keryn.dev/rules/)

**How to read a rule**

- **Severity**: How bad the finding is if it is real: `error` fails a default gate, `warning` and `info` do not.

- **Confidence**: **P0** exploitable as written; **P1** dangerous in context; **P2** a heuristic or a posture check: confirm by reading the code.

- **False-positive risk**: **low**: an exact API or flag, so hits are almost always real; **medium**: the pattern is legitimate in many programs, so check each hit; **high**: it finds a lead to confirm, so expect benign hits.

- **Edge**: The relationship the finding sits on. **reaches**: content or traffic gets to a thing; **calls**: one thing invokes another; **reads**: one thing reads from another; **writes**: one thing writes to another; **sends**: data leaves for another party; **grants**: authority is given or left unchecked; **depends_on**: something relies on a component it does not verify; **trusts**: one party believes another without evidence. The boundary it crosses, when there is one: **user->prompt** (untrusted input reaching a prompt); **model->code** (model output reaching code, a shell, a query or a page); **secret->outside** (a secret leaving the trusted side); **supply-chain** (code, models or prompts pulled in from outside).

- **Taxonomy chips**: References for readers who work in OWASP LLM 2025, OWASP Agentic, CWE or NIST AI RMF. They say where a rule belongs, not that a framework is satisfied.

## seceng.vectordb.pinecone-query-without-namespace-or-filter

`warning` python, typescript, javascript pinecone

Pinecone query appears without namespace or metadata filter. RAG retrieval should enforce tenant/user boundaries.

Confidence **P2**: a heuristic or a posture check: confirm by reading the code. False-positive risk **medium**: the pattern is legitimate in many programs, so check each hit.

Edge inspected: [grants](https://keryn.dev/docs/edges/edge-kinds/#grants) authority is given or left unchecked.

[CWE-639](https://keryn.dev/taxonomies/cwe/#cwe-639-authorization-bypass-through-user-controlled-key) [LLM08](https://keryn.dev/taxonomies/owasp-llm/#llm08-vector-and-embedding-weaknesses) [ASI03](https://keryn.dev/taxonomies/owasp-agentic/#asi03-identity-and-privilege-abuse) [ASI06](https://keryn.dev/taxonomies/owasp-agentic/#asi06-memory-and-context-poisoning) [MAP](https://keryn.dev/taxonomies/nist-ai-rmf/#map-map) [MANAGE](https://keryn.dev/taxonomies/nist-ai-rmf/#manage-manage)

Also reported under the older id `seceng.llm08.pinecone-query-without-namespace-or-filter`.

## seceng.vectordb.qdrant-query-without-filter

`warning` python qdrant

Qdrant search/query appears without filter or tenant/user condition.

Confidence **P2**: a heuristic or a posture check: confirm by reading the code. False-positive risk **medium**: the pattern is legitimate in many programs, so check each hit.

Edge inspected: [grants](https://keryn.dev/docs/edges/edge-kinds/#grants) authority is given or left unchecked.

[CWE-639](https://keryn.dev/taxonomies/cwe/#cwe-639-authorization-bypass-through-user-controlled-key) [LLM08](https://keryn.dev/taxonomies/owasp-llm/#llm08-vector-and-embedding-weaknesses) [ASI03](https://keryn.dev/taxonomies/owasp-agentic/#asi03-identity-and-privilege-abuse) [ASI06](https://keryn.dev/taxonomies/owasp-agentic/#asi06-memory-and-context-poisoning) [MAP](https://keryn.dev/taxonomies/nist-ai-rmf/#map-map) [MANAGE](https://keryn.dev/taxonomies/nist-ai-rmf/#manage-manage)

Also reported under the older id `seceng.llm08.qdrant-search-without-filter`.

## seceng.vectordb.qdrant-query-without-filter-js

`warning` javascript, typescript qdrant

Qdrant search/query appears without filter or tenant/user condition.

Confidence **P2**: a heuristic or a posture check: confirm by reading the code. False-positive risk **medium**: the pattern is legitimate in many programs, so check each hit.

Edge inspected: [grants](https://keryn.dev/docs/edges/edge-kinds/#grants) authority is given or left unchecked.

[CWE-639](https://keryn.dev/taxonomies/cwe/#cwe-639-authorization-bypass-through-user-controlled-key) [LLM08](https://keryn.dev/taxonomies/owasp-llm/#llm08-vector-and-embedding-weaknesses) [ASI03](https://keryn.dev/taxonomies/owasp-agentic/#asi03-identity-and-privilege-abuse) [ASI06](https://keryn.dev/taxonomies/owasp-agentic/#asi06-memory-and-context-poisoning) [MAP](https://keryn.dev/taxonomies/nist-ai-rmf/#map-map) [MANAGE](https://keryn.dev/taxonomies/nist-ai-rmf/#manage-manage)

## seceng.vectordb.weaviate-query-without-where-filter

`warning` python, typescript, javascript weaviate

Weaviate query appears without where/tenant filter.

Confidence **P2**: a heuristic or a posture check: confirm by reading the code. False-positive risk **medium**: the pattern is legitimate in many programs, so check each hit.

Edge inspected: [grants](https://keryn.dev/docs/edges/edge-kinds/#grants) authority is given or left unchecked.

[CWE-639](https://keryn.dev/taxonomies/cwe/#cwe-639-authorization-bypass-through-user-controlled-key) [LLM08](https://keryn.dev/taxonomies/owasp-llm/#llm08-vector-and-embedding-weaknesses) [ASI03](https://keryn.dev/taxonomies/owasp-agentic/#asi03-identity-and-privilege-abuse) [ASI06](https://keryn.dev/taxonomies/owasp-agentic/#asi06-memory-and-context-poisoning) [MAP](https://keryn.dev/taxonomies/nist-ai-rmf/#map-map) [MANAGE](https://keryn.dev/taxonomies/nist-ai-rmf/#manage-manage)

## seceng.vectordb.chroma-query-without-where

`warning` typescript, javascript chroma

Chroma collection query appears without where/tenant metadata filter.

Confidence **P2**: a heuristic or a posture check: confirm by reading the code. False-positive risk **medium**: the pattern is legitimate in many programs, so check each hit.

Edge inspected: [grants](https://keryn.dev/docs/edges/edge-kinds/#grants) authority is given or left unchecked.

[CWE-639](https://keryn.dev/taxonomies/cwe/#cwe-639-authorization-bypass-through-user-controlled-key) [LLM08](https://keryn.dev/taxonomies/owasp-llm/#llm08-vector-and-embedding-weaknesses) [ASI03](https://keryn.dev/taxonomies/owasp-agentic/#asi03-identity-and-privilege-abuse) [ASI06](https://keryn.dev/taxonomies/owasp-agentic/#asi06-memory-and-context-poisoning) [MAP](https://keryn.dev/taxonomies/nist-ai-rmf/#map-map) [MANAGE](https://keryn.dev/taxonomies/nist-ai-rmf/#manage-manage)

Also reported under the older id `seceng.llm08.chroma-query-without-where`, `seceng.llm08.chroma-query-without-where-js`.

## seceng.vectordb.chroma-query-without-where-python

`warning` python chroma

Chroma collection query appears without where/tenant metadata filter.

Confidence **P2**: a heuristic or a posture check: confirm by reading the code. False-positive risk **medium**: the pattern is legitimate in many programs, so check each hit.

Edge inspected: [grants](https://keryn.dev/docs/edges/edge-kinds/#grants) authority is given or left unchecked.

[CWE-639](https://keryn.dev/taxonomies/cwe/#cwe-639-authorization-bypass-through-user-controlled-key) [LLM08](https://keryn.dev/taxonomies/owasp-llm/#llm08-vector-and-embedding-weaknesses) [ASI03](https://keryn.dev/taxonomies/owasp-agentic/#asi03-identity-and-privilege-abuse) [ASI06](https://keryn.dev/taxonomies/owasp-agentic/#asi06-memory-and-context-poisoning) [MAP](https://keryn.dev/taxonomies/nist-ai-rmf/#map-map) [MANAGE](https://keryn.dev/taxonomies/nist-ai-rmf/#manage-manage)

## seceng.vectordb.milvus-search-without-expr

`warning` python vector-db-auth-isolation

Milvus search/query appears without expr/filter tenant condition.

Confidence **P2**: a heuristic or a posture check: confirm by reading the code. False-positive risk **medium**: the pattern is legitimate in many programs, so check each hit.

Edge inspected: [grants](https://keryn.dev/docs/edges/edge-kinds/#grants) authority is given or left unchecked.

[CWE-639](https://keryn.dev/taxonomies/cwe/#cwe-639-authorization-bypass-through-user-controlled-key) [LLM08](https://keryn.dev/taxonomies/owasp-llm/#llm08-vector-and-embedding-weaknesses) [ASI03](https://keryn.dev/taxonomies/owasp-agentic/#asi03-identity-and-privilege-abuse) [ASI06](https://keryn.dev/taxonomies/owasp-agentic/#asi06-memory-and-context-poisoning) [MAP](https://keryn.dev/taxonomies/nist-ai-rmf/#map-map) [MANAGE](https://keryn.dev/taxonomies/nist-ai-rmf/#manage-manage)

## seceng.vectordb.milvus-search-without-expr-js

`warning` typescript, javascript vector-db-auth-isolation

Milvus search/query appears without expr/filter tenant condition.

Confidence **P2**: a heuristic or a posture check: confirm by reading the code. False-positive risk **medium**: the pattern is legitimate in many programs, so check each hit.

Edge inspected: [grants](https://keryn.dev/docs/edges/edge-kinds/#grants) authority is given or left unchecked.

[CWE-639](https://keryn.dev/taxonomies/cwe/#cwe-639-authorization-bypass-through-user-controlled-key) [LLM08](https://keryn.dev/taxonomies/owasp-llm/#llm08-vector-and-embedding-weaknesses) [ASI03](https://keryn.dev/taxonomies/owasp-agentic/#asi03-identity-and-privilege-abuse) [ASI06](https://keryn.dev/taxonomies/owasp-agentic/#asi06-memory-and-context-poisoning) [MAP](https://keryn.dev/taxonomies/nist-ai-rmf/#map-map) [MANAGE](https://keryn.dev/taxonomies/nist-ai-rmf/#manage-manage)

## seceng.vectordb.lancedb-search-without-filter

`warning` python, typescript, javascript vector-db-auth-isolation

LanceDB vector search appears without tenant/user filter.

Confidence **P2**: a heuristic or a posture check: confirm by reading the code. False-positive risk **medium**: the pattern is legitimate in many programs, so check each hit.

Edge inspected: [grants](https://keryn.dev/docs/edges/edge-kinds/#grants) authority is given or left unchecked.

[CWE-639](https://keryn.dev/taxonomies/cwe/#cwe-639-authorization-bypass-through-user-controlled-key) [LLM08](https://keryn.dev/taxonomies/owasp-llm/#llm08-vector-and-embedding-weaknesses) [ASI03](https://keryn.dev/taxonomies/owasp-agentic/#asi03-identity-and-privilege-abuse) [ASI06](https://keryn.dev/taxonomies/owasp-agentic/#asi06-memory-and-context-poisoning) [MAP](https://keryn.dev/taxonomies/nist-ai-rmf/#map-map) [MANAGE](https://keryn.dev/taxonomies/nist-ai-rmf/#manage-manage)

## seceng.vectordb.empty-or-default-api-key

`warning` python, typescript, javascript vector-db-auth-isolation

Vector database client appears initialized with empty, default, public, or placeholder credentials.

Confidence **P2**: a heuristic or a posture check: confirm by reading the code. False-positive risk **medium**: the pattern is legitimate in many programs, so check each hit.

Edge inspected: [grants](https://keryn.dev/docs/edges/edge-kinds/#grants) authority is given or left unchecked.

[CWE-798](https://keryn.dev/taxonomies/cwe/#cwe-798-use-of-hard-coded-credentials) [CWE-306](https://keryn.dev/taxonomies/cwe/#cwe-306-missing-authentication-for-critical-function) [LLM03](https://keryn.dev/taxonomies/owasp-llm/#llm03-supply-chain) [LLM08](https://keryn.dev/taxonomies/owasp-llm/#llm08-vector-and-embedding-weaknesses) [ASI03](https://keryn.dev/taxonomies/owasp-agentic/#asi03-identity-and-privilege-abuse) [ASI06](https://keryn.dev/taxonomies/owasp-agentic/#asi06-memory-and-context-poisoning) [GOVERN](https://keryn.dev/taxonomies/nist-ai-rmf/#govern-govern) [MANAGE](https://keryn.dev/taxonomies/nist-ai-rmf/#manage-manage)

## seceng.vectordb.shared-collection-name

`info` python, typescript, javascript vector-db-auth-isolation

Vector collection/index name appears static or shared without tenant namespace.

Confidence **P1**: dangerous in context. False-positive risk **high**: it finds a lead to confirm, so expect benign hits.

Edge inspected: [writes](https://keryn.dev/docs/edges/edge-kinds/#writes) one thing writes to another.

[CWE-639](https://keryn.dev/taxonomies/cwe/#cwe-639-authorization-bypass-through-user-controlled-key) [LLM08](https://keryn.dev/taxonomies/owasp-llm/#llm08-vector-and-embedding-weaknesses) [ASI03](https://keryn.dev/taxonomies/owasp-agentic/#asi03-identity-and-privilege-abuse) [ASI06](https://keryn.dev/taxonomies/owasp-agentic/#asi06-memory-and-context-poisoning) [MAP](https://keryn.dev/taxonomies/nist-ai-rmf/#map-map) [MANAGE](https://keryn.dev/taxonomies/nist-ai-rmf/#manage-manage)
