As a salmonella outbreak that sickened dozens forced a recall of some cereal products this week, federal officials announced that a separate outbreak linked to cut fruit has expanded to almost two dozen states.

The outbreak linked to Kellogg’s Honey Smacks cereal had sickened 73 people in 31 states as of Thursday, according to a statement from the Centers for Disease Control and Prevention; 24 of them had been hospitalized and no deaths had been reported.

The agency advised consumers to throw away cereal boxes that have a “best if used by” date of June 14, 2018, through June 14, 2019, on the tops of 15.3-ounce and 23-ounce packages of Honey Smacks, and to wash any containers used to store the cereal.

The cereal recall was the second to involve a salmonella outbreak in food in the United States in about a month. In May, 60 people were sickened from the disease, and last week the C.D.C. linked their illnesses to pre-cut watermelon, honeydew melon, cantaloupe and mixed fruit in eight states.