The invention generally relates to compositions and methods for preventing and treating cancer. More specifically, the invention relates to antigenic polypeptides and their use in cancer vaccines that may be used, in part, to treat cancer types dependent upon HER2-mediated signaling.