Nothing can be spread by a kiss on the cheek, forehead or the hand or anywhere that isn't a mucous membrane. A quick kiss isn't going to transmit herpes on the thick skin of those locations.
Did they touch their own shaving cut? Someone else's? If it's their own, and they have oral herpes, they already have antibodies to prevent them from spreading it to other parts of their bodies. If it's someone else, herpes doesn't spread like that. It takes some friction, and the wisdom teeth have nothing to do with it. Herpes isn't found in blood or saliva.
Listen, a good portion of the population has hsv1 orally. I don't know if you have a phobia of herpes, STDs, or germs in general, but your parents likely have oral herpes, or your grandparents, aunts, uncles, etc. 90% of those who have it have never had a cold sore. I don't say this to freak you out, but to educate you, and so you won't avoid kissing your loved ones forever. Have you ever been tested? If you can test and handle the results, then test. Ask for a type specific IgG blood test.
All other STDs require sexual contact of some sort to transmit. No STD can be transmitted by casual contact.