Carnival called the move a precautionary measure. None of the incidents has involved cruise passengers.
Carnival says its Splendor and Spirit ships will replace Mazatlan stops with calls in Cabo and Manzanillo.
Disney Wonder and Holland America have also cancelled Mazatlan stops recently.
Mazatlan is located in the northwestern state of Sinaloa, which is the cradle of several drug cartels and has one of the highest homicide rates in Mexico.
Last week, five dead bodies were found dangling from bridges over a highway in Mazatlan.
The Associated Press contributed to this story.