GitHub Advisoryadvisory · Maven

GHSA-4wrg-8wpc-h923 Spring Security Doesn't Correctly Include Servlet Path in Path Matching of HttpSecurity#securityMatchers

HIGH Published 2026-04-22 Modified 2026-04-29 Official page ↗
Aliases
CVE-2026-22753
Ecosystem
Maven
Packages
org.springframework.security:spring-security-config
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weaknesses
CWE-693
Reviewed
2026-04-29

Affected packages

• Maven org.springframework.security:spring-security-config: >= 7.0.0, < 7.0.5 → fixed in 7.0.5

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.

Related

Alias · CVE (1)

  • CVE-2026-22753 Vulnerability in Spring Spring Security. vulnerability

Weakness · CWE (1)

  • CWE-693 Protection Mechanism Failure weakness

References