Bumps like that can be caused by a lot of things- an irritation to something, possibly sweat causing a rash, or many other things. I don't know that I would jump to an STI if it's on your thigh, but it's probably worth getting a doctor to take a look at it, if it's not going away.
I have added a picture to my account of the affected area