Mushrooms may contain trace amounts of vitamin B12, but should not be counted on as a reliable source of this vitamin. If you are vegan, you should get vitamin B12 from supplements and/or fortified foods. It’s better to play it safe than risk a serious nutrient deficiency.