Because he said: take heed and beware etc. Here the teaching is set forth. By leaven he means corrupt doctrine; hence he does not mean the doctrine of the law, but the traditions of the Pharisees, which are called leaven, because just as from a little leaven the whole is corrupted, so from a small error the whole of life is corrupted, just as from a road from which a man departs a little, he afterwards goes far astray: hence the Philosopher says in the first book of On the Heavens that a small error in the beginning becomes great at the end. The spiritual meaning is bread, not leaven. Hence by... bread true doctrine is understood; Ecclus. 15:3: she fed him with the bread of life and understanding. Hence it says take heed, and beware, because false doctrine is dangerous. For while faith remains in a man, there is no danger; but when the foundation has been removed, there is no hope. Ps. 136:7: rase it, rase it, even to the foundation thereof. The foundation is faith; Titus 3:10: a man that is a heretic, after the first and second admonition, avoid. Because false doctrine has an appearance of truth, therefore he says take heed, i.e., consider diligently; Prov. 4:25: let thy eyes look straight on, and let thy eyelids go before thy steps.
Source: Commentary on Matthew