Worms are mainly spread in small bits of poo from people with a worm infection. Some are caught from food. You can get infected by: touching objects or surfaces with worm eggs on them if someone with worms doesn't wash their hands.