Earthworms are not harmful to humans or pets but can carry bacteria or parasites that can cause infections or allergies. You should avoid touching them or letting them contact your skin or food.