No, it is not syphilis. Syphilis may mimic other diseases, but no doctor on Earth would confuse anal chancre with hemorrhoids. Hope it puts your mind at ease.
There is a theoretical possibility, but there lots and lots of factors that lower your risks to negligible.
Are you at a risk of being infected with plague? Well, yes. There is a theoretical possibility. About the same level of risk.