Patent Pending
Patent pending does not always mean that the patent will go through. You may see this often on products that you buy. Simply this means that the product has been submitted and is awaiting approval on the patent. Companies have the right to still sell the product even though they do not have this approval. Sure there can be some risks. One risk would be is that the application is denied because the product is too close or similar to another patent. Or they may have failed to complete the necessary requirements in order to gain approval.
Is it unsafe to buy that product? Not necessarily. However depending on the type of product you may want to consider if there could be some risks like with child safety items, etc. However it is a common practice, to start selling something before the product is patent approved. The patent application to approval process can take years.