Why would a security concern (which would apply to mailing anything of value, not just cash) imply any legal issue?
As someone who lives in the Bay Area and has seen car windows smashed for the change in the cupholder and a friend's motorcycle knocked over to get the flattened soda can that was being used as a stabilizer, yes, that's a security concern.