Objective: Janus kinase (JAK) inhibitors are a novel class of drugs that have shown efficacy in treating immune-mediated inflammatory diseases (IMIDs). However, their safety profile in terms of herpes zoster infection remains unclear. We aimed to evaluate the risk of herpes zoster associated with JAK inhibitors in patients with IMIDs.Methods: A systematic search of electronic databases was conducted to identify randomized controlled trials (RCTs) that evaluated the safety of JAK inhibitors in patients with IMIDs including inflammatory bowel disease (IBD), rheumatoid arthritis (RA), spondyloarthritis (SpA), psoriasis (PsO), and psoriatic arthritis (PsA). The primary outcome of interest was the incidence of herpes zoster infection. Network meta-analysis was performed to compare the risk of herpes zoster among different JAK inhibitors and placebo.Results: A network meta-analysis was conducted using data from 47 RCTs including 24,142 patients. In patients with IMIDs, peficitinib 100 mg QD was associated with the highest risk of herpes zoster infection in patients with IMIDs, followed by baricitinib 4 mg QD and upadacitinib 30 mg QD. No difference in herpes zoster risk was found for other JAK inhibitors compared with placebo. Subgroup analysis indicated that higher incidence of herpes zoster was found in patients treated by baricitinib 4 mg QD, peficitinib 100 mg QD, and upadacitinib 30 mg QD only in patients with RA.Conclusion: Our study suggests that some JAK inhibitors, particularly peficitinib, baricitinib, and tofacitinib, are associated with a higher risk of herpes zoster infection in patients with IMIDs.