While heartworms primarily affect dogs, they can also infect cats and, in rare cases, humans. However, heartworms are species-specific, meaning that heartworms from dogs cannot mature and reproduce in humans or cats. Nonetheless, it is essential to maintain a consistent heartworm prevention plan for all pets in your household to protect them from this dangerous disease.