Don't blame the manager, the PO, the CEO. This is ABSURD engineering incompetence. The fellow that did that _fix_ probably had no idea how to properly solve the issue.
- hiring people who'd know not to do it
- creating processes for more than one security expert to review security patches
- requiring the testing of patches against real-world workarounds
- allotting the time and budget necessary for all of the above