Worm infection treatment utilizes antiparasitic medications to eliminate parasitic worms in the body, with the specific medication depending on the type of worm. Consultation with a healthcare professional is essential for accurate diagnosis and tailored treatment.