As it’s made from fermenting sugars from grains or dairy, if you have allergies to wheat, corn, soy or dairy, it may be best to find substitutes for xanthan gum, just for safety purposes.  Other than its potential for allergens, it is considered a safe food additive.