Fortunately we have LLM's to not produce that crap... wait, those LLM's were trained on the existing crap and produce the same crap... oh no.
And even if, a later "is this ready for release" will probably surface such obvious issues.
I do not think LLMs are the problem here. Today, they are most likely more competent than whoever set this up.
Asking the LLM for a review of the code would still have caught it
That is not a very good basis to start complaining about AI producing insecure code.
If you still want to do it, at least check if it actually is the case with reasonably intelligent current models.