Yeah ChatGPT is a red herring -- it doesn't matter what generates the code, it's what you do with it.
To be truly reflective, OP needs to dive into the real reason their code had this issue. It wasn’t using GPT, it was not having the controls in place.