Heartworm disease is a serious and potentially fatal condition that affects dogs, cats, and up to 30 other species of mammals. It is caused by parasitic worms living in the major vessels of the lungs and, occasionally, in the heart. The scientific name for the heartworm is Dirofilaria immitis.