*deep breath* Though the risk is small, raw eggs can carry samonella.
MORE THREATENINGLY Raw wheat can carry E. Coli. However, if you don’t mind making your own cookie dough, you can easily make it safely.
Take your standard recipe. Omit the eggs. Eggs serve as a binding agent to hold the cookie together. Since we’re eating the dough raw, that’s not needed. Take the flour, put it in a pan and bake it at 350 for 7 minutes. Any E. Coli is now dead.
Just mix the rest of the ingredients together as the recipe is called for and BAM, perfectly safe edible cookie dough.