No one knows for sure how H. pylori spreads, so prevention is difficult. Researchers are trying to develop a vaccine to prevent infection.