You can get syphilis by direct contact with a syphilis sore during vaginal, anal, or oral sex. Sores can be found on the penis, vagina, anus, in the rectum, or on the lips and in the mouth. Syphilis can also be spread from an infected mother to her unborn baby.