Repository navigation
Security Fixes in v1.5.2
- Cross-Project Memory Mutation Protection: Added
_verify_memory_project()ownership check toPOST /delete,DELETE /memory/{id}, andPOST /updateingateway/main.py. Mismatched or unscoped callers attempting to modify a project-scoped memory now strictly receiveHTTP 403 Forbidden. - Search Scoping & Data Isolation:
POST /searchnow strictly passesfilters={"AND": [{"metadata": {"project": project_filter}}]}to Mem0 and applies defensive post-filtering to prevent leaking memories across tenants holding a shared API key. - Blueprint Ingestion Scoping:
POST /ingestnow tags ingested memory records with the caller's project namespace. - Hygiene & Regression Test Coverage: Added
test_gateway_memory_cross_project_isolation_and_search_scopingtotests/test_hygiene.py. Full test suite 100% green.
Acknowledgements
Special thanks to security researcher kta1kri for discovering this vulnerability, responsibly disclosing it with clear reproduction steps, and verifying the fix.