The PTPN2 rs1893217 IBD risk allele increases susceptibility to AIEC invasion by a JAK-STAT-CEACAM6 axis. Here, PTPN2 is linked to inflammatory bowel disease.