These results suggest the involvement of LPS-mediated TLR4-cGAS-STING-NF-κB/NLRP3 in the pathogenesis of ruminal microbiota-associated mastitis. Here, CGAS is linked to mastitis.