Repository navigation
A patch release with security fixes. Upgrade now if you use RetrievalGuard access control, PluginSignatureVerifier, DevServer or @devilsdev/rag-mcp-server. One change in access control can hide documents that were visible before; see below.
npm install @devilsdev/rag-pipeline-utils@^3.8.1
# and, if you use the MCP server:
npx @devilsdev/rag-mcp-server@3.8.1 ./docsSecurity
Four advisories, fixed in this release:
- Access control in
RetrievalGuardand the built-in stores (MemoryRetriever,FileVectorStore,BM25Search): GHSA-8393-cmg7-9rv3 - Plugin signature verification (
PluginSignatureVerifier): GHSA-w693-22gp-m69r - The development server (
DevServer): GHSA-6h47-g8cw-366q - HTML indexing in
@devilsdev/rag-mcp-server: GHSA-j2vr-gm7f-3r37
Each advisory lists the affected versions and workarounds for anyone who can't upgrade yet.
After upgrading
- Re-ingest
FileVectorStoreindexes whose documents setaclorrequiredRoleat the top level (not inmetadata). Index files written by earlier versions don't contain that field, so upgrading alone doesn't restrict those documents. Documents with the restriction inmetadata, and the in-memory stores (MemoryRetriever,BM25Search), need no action beyond upgrading.
Changed
RetrievalGuardnow requires every restriction a document sets. A document can setrequiredRoleoraclat its top level, inmetadataand ondoc; access now requires meeting each one that is set (any one role of a list is enough for that list). This can hide documents that were visible before. If some of your documents set restrictions in more than one place, check that they set the ones you mean.
The scoped packages, @devilsdev/rag-mcp-server and create-rag-pipeline are released at 3.8.1 too. Full details: CHANGELOG