langchain-enterprise-rbac

Warn

Audited by Socket on Sep 9, 2026

1 alert found:

Anomaly
AnomalyLOW
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
Analyzed At
Sep 9, 2026, 03:48 AM
Package URL
pkg:socket/skills-sh/jeremylongshore%2Ftons-of-skills-marketplace%2Flangchain-enterprise-rbac%2F@eb8758c428ed7c41d5891a6dc71e5862d34e2d1cc309cf2c94a63af97d13fc2a