There are no risks from handjobs. Hands do not transmit any STDs.
While people can get herpes on their fingers, if they do not have an outbreak of it, they are not contagious. Don't let anyone with broken skin, rashes, etc., on their hands touch your penis. Other things that are not considered STDs can be transmitted this way - staph, MRSA, monkeypox, etc.