There's a great piece of work on this here: number of cancers caused by infections

HPV causes the most cancers (or at least it did, before the vaccine) and it's interesting that H pylori (while causing gastric cancer) is actually protective against esophageal adenocarcinoma: