Patients undergoing cancer treatment may have compromised immune systems, making them more susceptible to allergic reactions. Treatments like chemotherapy and radiation can alter the immune response, potentially exacerbating allergic reactions. Additionally, some cancer medications may contain peanut oil, posing a risk for those with peanut allergies.