Yes, soybeans do
But not much else does.
So you can get your B12 on a vegan diet, but it takes some awareness and planning.
Cheers,
Ben
"... I couldn't see how anyone could be educated by this self-propagating system in which people pass exams, teach others to pass exams, but nobody knows anything."
--Richard Feynman