Cats eat earthworms.
Eating earthworms can be dangerous to cats as they may contract parasites such as Capillaria.
Earthworm movements attract cats and are mostly playful objects to them instead of food.
Although you probably don't want to add earthworms to your cat's diet, earthworms aren't the most dangerous thing your cat may consume.