These results suggest that although RAB42 promotes the infiltration of immune cells, it could induce the formation of immunosuppressive milieu by stimulating the expression of immune checkpoints in pan-cancer. Here, RAB42 is linked to cancer.