•Gastric cancer’s STAT3 addiction switches from IL-11 to IL-6 dependency when being TP53 mutant. Here, IL6 is linked to gastric cancer.