Cold sores are caused by a herpes virus that may be spread by kissing or other physical contact with the infected area of the skin. They are small, painful ulcers that you get in or around your mouth. It is not known if valacyclovir can stop the spread of cold sores to others.