There's litterally thousands of things this could be, which is probably why there hasnt been a response yet. Whatever it is, if it remains just a single worm then it shouldnt be an issue.
The most likely culprits are
- worms that are naturally part of the digestive system of the spider. These can be observed when faeces appears on the glass of our enclosores but they die off with the lack of moisture.
- springtails that naturally habitate moist substrates. These help clean the substrate of fungus and dead food, including bolus.
- nematodes. Not good, but usually only appear in numbers. Check the mouth parts to make sure numbers are not increasing around there. It may look like a foaming mouth, but at that point its likely going to cause the death of your T.
- mites, tiny little egg shaped, white/cream/brown. These multiply in huge numbers if uneaten food is left lying around but they rarely cause anything other than a nuisance to the spiders.
Just to dampen the alarm, remember, its very likely to be something of no concern, tarantula are probably surrounded by these kind of tiny inverts in the wild.