In Lasso‐logistic regression analysis, HAMD‐17 score, human leukocyte antigen (HLA)‐DRB1*03:01 allele, age, ALP levels, and IgM levels (odds ratio [OR] = 1.087, 7.353, 1.075, 1.009, 1.005; p < 0.05) were independent risk factors for cirrhosis. Here, CD40LG is linked to Cirrhosis.