Hi and welcome to Healthcare magic.Thank you for the query.
Yes, this is typical location of ganglion cyst
and it sounds like it is. If this is infected it should be treated by antibiotics first and after it heals it should be surgically removed. It may take 8-12 weeks. This is not serious condition and usually is easily treatable.
Wish you good health. Regards