No, STDs don't live outside the body for long at all, nor would they survive in a jar. Handjobs also do not transmit STDs.
My guess is that something in whatever she used for lube irritated you because the skin was dry, or you had an allergic reaction to it.