We observed significant associations for all tested viruses: JCPyV, HPyV6, and MCPyV associated with human leukocyte antigen class II variation, BKPyV and JCPyV with variants in FUT2, responsible for secretor status, MCPyV with variants in STING1, involved in interferon induction, and WUPyV with a functional variant in MUC1, previously associated with risk for gastric cancer. Here, MUC1 is linked to gastric cancer.