Network pharmacology analysis revealed that the 6 component herbs affected various CAG-related genes, including genes that affect cancer-related pathways (apoptosis, p53, and VEGF), epithelial cell signaling in H. pylori infection, TNF signaling, ErbB signaling, toll-like receptor signaling, cAMP angiogenesis, microRNAs in cancer which could cover the main processes of H. pylori infection, inflammation, and tumor-like lesions. Here, TP53 is linked to cancer.