Eating onions with black spots can be dangerous. These spots are caused by a fungus called Aspergillus niger, which may trigger allergies and infections, especially in people with weak immunity, asthma, or diabetes. Avoid soft or foul-smelling onions, and never store them in the fridge or with potatoes to prevent faster spoilage.