What’s Vulnerable › Vulnerabilities

CVE-2026-22753: Servlet Path Not Correctly Included in Path Matching of HttpSecurity#securityMatchers

Description

Vulnerability in Spring Spring Security. If an application is using securityMatchers(String) and a PathPatternRequestMatcher.Builder bean to prepend a servlet path, matching requests to that filter chain may fail and its related security components will not be exercised as intended by the application. This can lead to the authentication, authorization, and other security controls being rendered inactive on intended requests.This issue affects Spring Security: from 7.0.0 through 7.0.4.

Affected products

How to fix

Upgrade to a fixed version: Spring Security 7.0.5. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-22753 or the next vulnerability affects your stack