Is it safe to eat windfall apples if I cut away any sections that look bad? Or should I only use them in cooking?
If you want to err on the side of caution, you should use them neither for fresh eating nor for cooking. There is a toxin produced by fungi called patulin which may be present in apples which have dropped from the tree and have been lying on the ground, according to University of Minnesota Extension, in a news item dated September 29, 2022. Here is an excerpt:
“Patulin is a mycotoxin produced by molds like Penicillium, Aspergillus and Byssochlamys when apples or other fruits are injured. The toxin is heat-stable, meaning it is resistant to heating, even at pasteurization temperatures. You cannot see or smell or taste the toxin, so it is not possible to know if it is present without laboratory testing. Patulin has been shown to cause serious illness in animals and humans, especially to the nervous systems and might cause problems with blood flow, nausea, vomiting and other symptoms. Because of the risk of the formation of patulin, it is recommended that dropped apples are not used for fresh eating, juicing, baking or canning.”
According to the Ontario Ministry of Agriculture (now archived), there are ways of diminishing the risk, but the processes involved are more appropriate to commercial apple processors than backyard orchardists. Excerpt:
“Current research suggests that varieties with an open calyx are a greater risk for patulin development within the core of the apple. In such a situation, damage to the fruit is not easily detected […]
“Patulin is also destroyed by fermentation, which means it is not found in either alcoholic fruit beverages or vinegar produced by fruit juices. Patulin will however survive the pasteurization process if present in the juice.”
Even if windfall apples do not contain patulin, any fresh cider you make should be pasteurized to prevent bacterial contamination (such as E. coli).