langchain-enterprise-rbac
Warn
Audited by Socket on Sep 9, 2026
1 alert found:
AnomalyAnomalyreferences/retriever-per-request.md
LOWAnomalyLOW
references/retriever-per-request.md
The fragment is security-oriented documentation and code, not apparent malware. It correctly avoids a module-scope retriever and validates the presence and type of tenant_id, but it contains important isolation weaknesses: PGVector's SET LOCAL scope ends before retrieval, and FAISS permits unvalidated tenant_id input in a filesystem path, creating a potential path-traversal or unauthorized file-read issue. Tenant IDs should be authorization-checked and constrained to a strict safe format; PGVector tenant context must remain active for the retrieval transaction or be applied through a supported per-query mechanism.
Confidence: 96%Severity: 67%
Audit Metadata