I would say thay are fine. If they were sold as fishing bait worms id make sure they arent scented or have any dyes, but I cant see why they would contain parasites. Are you worried because they arrived in tge soil? Because thats completely normal. They need it to live.