I am setting up auto-vuln scanning, maybe useful to prevent such cases and get notified about such issues with gitea e.g.. But also defense in depth helps too.
I find the correlation that using AI means outsourcing decisions. We are generally lazy, and "AI suppose to be smart", so lets just let it decide.
But generally AI as a tool shall not mean it. I think we might see more issues caused by AI deciding, until we realise its just a tool, and the responsibility and control must stay with us.