A popular snack sold at Coles and Woolworths has been pulled from shelves due to the presence of an undeclared allergen.