Cocaine use disorder (CUD), a major health crisis, has traditionally been considered a complication of the CNS; however, it is also closely associated with malnourishment and deteriorating gut health. In light of emerging studies on the potential role of gut microbiota in neurological disorders, we sought to understand the causal association between CUD and gut dysbiosis. Using a comprehensive approach, we confirmed that cocaine administration in mice resulted in alterations of the gut microbiota. Furthermore, cocaine-mediated gut dysbiosis was associated with upregulation of proinflammatory mediators including NF-κB and IL-1β. In vivo and in vitro analyses confirmed that cocaine altered gut-barrier composition of the tight junction proteins while also impairing epithelial permeability by potentially involving the MAPK/ERK1/2 signaling. Taken together, our findings unravel a causal link between CUD, gut-barrier dysfunction and dysbiosis and set a stage for future development of supplemental strategies for the management of CUD-associated gut complications.