First of all, every ingredient needs to have something called GRAS (generally recognized as safe) status. If it’s not on the GRAS list, it shouldn’t be in the formula. Second, there are strict laws concerning how the food/supplement is produced. This is called good manufacturing practice (GMP). Every supplement needs to be produced in a GMP-compliant facility until it is fully packaged and sealed, preventing contamination.