Cooking with aluminum foil is generally considered safe, but there are some potential health risks. Aluminum can leach into food, especially when it comes into contact with acidic or salty foods at high temperatures. This could lead to increased aluminum intake, which has been linked to neurological disorders like Alzheimer's disease, although more research is needed to establish a definitive link. Additionally, aluminum foil can cause burns or injuries if not handled properly. It's important to use foil responsibly, avoiding direct contact with food when possible, and to follow proper food safety guidelines.