Cold sores are caused by the herpes simplex virus-1 (HSV-1). Once you’re infected with the virus, cold sores can occur from time to time. Different factors can trigger an outbreak. These include a weak immune system, stress, the common cold or other infection, sun exposure, and fluctuating hormone levels.