org.springframework.security:spring-security-web@6.1.5 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
  • C
Missing Authorization

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 Missing Authorization allowing Spring Security authorization rules to be bypassed for static resources.

Note:

Spring Security states that for this to impact an application, all of the following must be true:

  1. It must be a WebFlux application.

  2. It must be using Spring's static resources support.

  3. It must have a non-permitAll authorization rule applied to the static resources support.

How to fix Missing Authorization?

Upgrade org.springframework.security:spring-security-web to version 5.7.13, 5.8.15, 6.2.7, 6.3.4 or higher.

[,5.7.13) [5.8.0,5.8.15) [6.0.0,6.2.7) [6.3.0,6.3.4)
  • 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)