Having a massage and hand job is one of the safest ways to have sex. We don’t see STI being passed with this type of sex.
The only time the type of lotion could be a problem would be if latex condom are being used during a session and the lotion that was being used is oil based. Oil based lubricants will break down latex condoms and increase the chance that they could break.
Also have a look at our “Know your chances” web page, it provides information on your chances of getting or passing an STI depending on how you are having sex.
Please leave a comment to let us know if this answers your question or if you need more information.
For other readers, please feel free to leave a comment, or let us know if this was helpful.