The East Asian finless porpoise, Neophocaena asiaeorientalis sunameri, is an endangered species that inhabits the coastal marine environments of East Asia. In the present study, we investigated the overall infection status of anisakid nematodes in East Asian finless porpoises from three sea sectors off the Korean Peninsula. The genetic diversity and population genetic structure of the identified nematode species were evaluated. The prevalence of all stages of anisakid nematodes collected from the stomach was 57.55% (61 among the 106 porpoises examined), and 16 of the hosts were found to have adult worms. The mean number of infected adults was 211 (± 419.54, 5–1455 per host). Only one species of anisakids, Anisakis pegreffii, was identified from randomly selected worms by molecular approaches. Analysis of the mitochondrial (mt) cox2 partial gene in 50 newly generated sequences of A. pegreffii revealed 24 haplotypes, including 14 new haplotypes. We observed below-average levels of nucleotide diversity and haplotype diversity compared to other seas around the world. The mtDNA cox2 haplotypes of the species in the three Korean sea areas showed no genetic structure, suggesting well-connected gene flow within these areas. This study represents the first record of a definitive host of A. pegreffii in Korean waters, providing important information regarding anisakids genetic diversity in the cetacean species inhabiting limited regions.