The results demonstrated that CB significantly alleviated LPS-induced mastitis by downregulating the expression of pro-inflammatory factors IL-1β, TNF-α, and the NLRP3 inflammasome while also reducing cell apoptosis. This evidence concerns the gene IL1B and mastitis.