It still happens in Fable 5.1 and Opus 5.5 (see below https://news.ycombinator.com/item?id=50158602). The irony is Fable 5.1 can detect many of the security issues Opus 5.5 creates, but when you tell Fable to fix them, it trips the security guardrails and refuses to do so.
They need to get rid of these guardrails asap, this is not a viable long-term solution where the best model(s) will not help you fix security issues in your code.
By June 8 I had cataloged 27 instances of this. It's many more now, and it's not a particular prompt. Gemini thinks Claude Code's reward signal is at odds with security constraints, and Claude's explanations seem to agree.