Deworming a 5 month old is risky.
There is a humaworm forum here, where i once read that they dewormed a baby with a herbal concoction. Small babies do not need meds, they react well to herbs (according to humaworm). Go to the ask humaworm forum and search in the search field. Or post your question directly.