Undercooked dough can pose health risks, primarily from harmful bacteria and parasites. Raw or undercooked dough made with flour may contain E. coli, Salmonella, and Listeria, which can cause foodborne illness with symptoms like nausea, vomiting, diarrhea, and abdominal cramping. These pathogens are killed during proper baking when internal temperatures reach safe levels.
Raw eggs in dough present another concern—uncooked eggs can carry Salmonella. Cookie dough, cake batter, and bread dough containing raw eggs should not be consumed uncooked, especially for vulnerable populations like young children, elderly people, and those with weakened immune systems.
Flour itself isn't sterile. It's a dry ingredient that can harbor E. coli and other bacteria from grain processing. While these organisms are destroyed during cooking, consuming raw flour-based dough introduces this risk.
That said, the risk varies by context. A small taste of bread dough is unlikely to cause serious illness in a healthy adult, but consumption of larger quantities or repeated exposure increases risk. Commercially produced cookie dough designed for raw consumption has been heat-treated to eliminate pathogens.
To be safe, avoid eating raw dough and fully cook baked goods to their recommended internal temperatures. If you enjoy cookie dough or cake batter, look for products made with heat-treated flour and pasteurized eggs, or use pasteurized eggs in homemade versions.