All perfect praise be to Allaah, the Lord of the worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad, sallallaahu ‘alayhi wa sallam, is His Slave and Messenger.
It is permissible to use such herbs if they are effective, because they are included under the general permission for seeking treatment.
However, it is impermissible to use them if they are of the kind used by magicians, for this is associated with corrupt beliefs. In the Quran, the Sunnah and the way of the righteous predecessors, there are satisfactory alternatives which would show one how to know how to prepare Sharee‘ah approved treatments and how they differ from those of sorcerers.
Allaah Knows best.