Vitamin B12 ( CYANOCOBALAMIN) Hydroxycobalamin is used to treat and prevent vitamin B12 deficiency. However, vitamin B12 only appears in animal products and not in vegetables, and therefore strict vegetarian or vegan diets that exclude dairy products may provide insufficient amounts, although the deficiency may not be apparent for many years.