Glasdegib is contraindicated in patients who have a known hypersensitivity to the drug or any of its components. Additionally, it is not recommended for use during pregnancy as it can cause fetal harm. Women of childbearing potential should use effective contraception during treatment and for at least 30 days after the last dose.