Cold sores are caused by a herpes virus. Herpes viruses (chickenpox is another kind) stay in the body after the first infection. Later, something that triggers the virus causes it to become active again. Cold sores may appear after colds, fevers, exposure to the sun, stressful times, or during menstruation. Sometimes, they appear for no apparent reason.