That sounds to me as if this is a cyst that has got infected and is turning into an abscess Archer.
Think a trip to the vet is called for.
My old boy has a wart on the side of his leg, which causes him no trouble at all, but very occasionally it gets infected and discharges pus. I think it is probably because it is on his elbow and gets rubbed every now and again.