These results provide evidence for the role of Th17 cells in inflammation-induced tumorigenesis in KRAS-mutant cancers. Here, KRAS is linked to cancer.