There are a handful of guns which have designs that allow this. Generally it's not a mechanical problem but an instance where the gun's drop safety DOES stop the firing pin from striking the round unintentionally, but DOES NOT prevent the very tip of the pin from protruding past the breech face.
I sold my gun that did this, but not so much for that reason. It was sub-par in other ways too. I wouldn't worry about an accidental discharge as long as you've confirmed the firing pin safety is functional. If you own an AR, go chamber the same round 5 times and check out the primer. You'll see it will have a significant ding in it but won't go off no matter how many times you chamber that same round (trust me I've tried). There would need to be a further mechanical issue for it to go off. Same will be true of the 9mm primer. It's a bit unnerving and I don't like guns that aren't designed to avoid that... but it's not going to go off.