Cyanocobalamin injection is in a class of medications called vitamins. Because it is injected straight into the bloodstream, it can be used to supply vitamin B12 to people who cannot absorb this vitamin through the intestine.