Dogs and cats become infected with heartworms when they are bitten by an infected mosquito. Dogs and cats can only get heartworms from infected mosquitoes. There is no spread from dog to dog, dog to cat, or dog to human.