org.springframework.security:spring-security-web@6.2.1 vulnerabilities

Direct Vulnerabilities

Known vulnerabilities in the org.springframework.security:spring-security-web package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Authentication Bypass

org.springframework.security:spring-security-web is a package within Spring Security that provides security services for the Spring IO Platform.

Affected versions of this package are vulnerable to Authentication Bypass when directly using the AuthenticationTrustResolver.isFullyAuthenticated(Authentication) method and passing a null authentication parameter to it.

Note:

An application is not vulnerable if any of the following is true:

  1. the application does not use AuthenticationTrustResolver.isFullyAuthenticated(Authentication) directly

  2. the application does not pass null to AuthenticationTrustResolver.isFullyAuthenticated

  3. the application only uses isFullyAuthenticated via Method Security or HTTP Request Security

How to fix Authentication Bypass?

Upgrade org.springframework.security:spring-security-web to version 6.1.7, 6.2.2 or higher.

[6.1.0,6.1.7) [6.2.0,6.2.2)