CVE-2025-22223: Spring Security authorization bypass for method security annotations on parameterized types
Description
Spring Security may not correctly locate method security annotations on parameterized types or methods. This may cause an authorization bypass.
Your application may be affected by this if the following are true:
- You are using
@EnableMethodSecurity
, and - You have a method security annotation on a parameterized superclass, interface, or overridden method and no annotation on the target method …