Some infections cause cancer-like growths or masses though they're not actually cancer. Though off the top of my head none that I would suspect would survive a trip through stomach acid.
Same for herpes virus. It causes ulcerations, but too common and small to be confused with cancer.