Young puppies and kittens can be born with worms that have infected them by crossing the placenta and the mammary gland, if their mother had worms. Some types of worms are found in the environment of the pet and others are spread from fleas and/or catching and eating rodents, rabbits or other wildlife.