From the Super Mario Wiki
Shroob Mushrooms, sometimes referred to as Poison Mushrooms, are light-purple Mushrooms that appear during the events of Mario & Luigi: Partners in Time. The Shroobs had the ability of firing purple energy bolts that could turn anything into a Shroob Mushroom. Toadiko, Toadbert, Kylie Koopa and Baby Bowser are all known to suffer this horrible fate, but they are all reverted when Professor E. Gadd spreads the baby tears from the Hydrogush across the Mushroom Kingdom. Some Shroobs are also known to turn into these purple mushrooms when defeated, like Elder Princess Shroob. When Princess Shroob is disguised as Princess Peach, she holds a Shroob Mushroom to her face. Shroob Mushrooms can talk in the most extreme cases, such as when Elder Princess Shroob gets defeated at the end of Mario & Luigi: Partners in Time.