Herpes simplex virus infection causes so-called cold sores, which are typically located on the lips, but they can also occur on the gums. Among the sexually transmitted diseases (STDs), the chancres of syphilis can occur as mouth sores. Medically Reviewed by a Doctor on 9/16/2016.