Vismodegib is contraindicated in pregnant women due to the risk of severe birth defects. Women of childbearing potential should use effective contraception during treatment and for at least 24 months after the last dose. Men taking vismodegib should also use contraception to avoid exposing their partners to the drug.