According to https://www.umm.edu/health/medical/reports/articles/herpes-simplex, "To infect people, the herpes simplex viruses (both HSV-1 and HSV-2) must get into the body through tiny injuries in the skin or through a mucous membrane, such as inside the mouth or on the genital area. Both viruses can be carried in bodily fluids (such as saliva, semen, or fluid in the female genital tract) or in fluid from herpes sores. The risk for infection is highest with direct contact of blisters or sores during an outbreak."