Are you sure it is a worm?
Maybe be a fluke. Not sure though. They usually attach to the gills but they can also attach other places.
I was reading this about them the other day.
http://edis.ifas.ufl.edu/fa041
Monogenean trematodes, also called flatworms or flukes, commonly invade the gills, skin, and fins of fish. Monogeneans have a direct life cycle (no intermediate host) and are host- and site-specific. In fact, some adults will remain permanently attached to a single site on the host.
Freshwater fish infested with skin-inhabiting flukes become lethargic, swim near the surface, seek the sides of the pool or pond, and their appetite dwindles. They may be seen rubbing the bottom or sides of the holding facility (flashing). The skin where the flukes are attached shows areas of scale loss and may ooze a pinkish fluid. Gills may be swollen and pale, respiration rate may be increased, and fish will be less tolerant of low oxygen conditions. "Piping", gulping air at the water surface, may be observed in severe respiratory distress. Large numbers (>10 organisms per low power field) of monogeneans on either the skin or gills may result in significant damage and mortality. Secondary infection by bacteria and fungus is common on tissue with monogenean damage.
Gyrodactylus and
Dactylogyrus are the two most common genera of monogeneans that infect freshwater fish (
Figure 17 ). They differ in their reproductive strategies and their method of attachment to the host fish.
Gyrodactylus have no eyespots, two pairs of anchor hooks, and are generally found on the skin and fins of fish. They are live bearers (viviparous) in which the adult parasite can be seen with a fully developed embryo inside the adult's reproductive tract. This reproductive strategy allows populations of
Gyrodactylus to multiply quickly, particularly in closed systems where water exchange is minimal.