Upgrade to [Spring Security 6.5.0](https://github.com/spring-projects/spring-security/releases/tag/6.5.0).