org.springframework.security:spring-security-web@4.0.2.RELEASE 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
  • M
Authorization 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 Authorization Bypass due to the use of String.toLowerCase() and String.toUpperCase() that have Locale dependent exceptions, which results in authorization rules not working properly.

How to fix Authorization Bypass?

Upgrade org.springframework.security:spring-security-web to version 5.7.14, 5.8.16, 6.2.8, 6.3.5 or higher.

[,5.7.14) [5.8.0,5.8.16) [6.2.0,6.2.8) [6.3.0,6.3.5)
  • 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
Authorization 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 Authorization Bypass via the RegexRequestMatcher class, which can easily be misconfigured to be bypassed on some servlet containers when it is used with . in the regular expression.

How to fix Authorization Bypass?

Upgrade org.springframework.security:spring-security-web to version 5.4.11, 5.5.7, 5.6.4 or higher.

[,5.4.11) [5.5.0,5.5.7) [5.6.0,5.6.4)
  • L
Timing Attack

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 Timing Attack. It is possible for an attacker to steal CSRF tokens through a timing attack.

How to fix Timing Attack?

Upgrade org.springframework.security:spring-security-web to version 5.2.9.RELEASE, 5.3.7, 5.4.3 or higher.

[,5.2.9.RELEASE) [5.3.0,5.3.7) [5.4.0,5.4.3)
  • H
Security 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 Security Bypass. It was found that Spring Security does not consider URL path parameters when processing security constraints. By adding a URL path parameter with an encoded / to a request an attacker may be able to bypass a security constraint.

How to fix Security Bypass?

Upgrade org.springframework.security:spring-security-web to version 3.2.10.RELEASE, 4.1.4.RELEASE, 4.2.1.RELEASE or higher.

[3.2.0.RELEASE,3.2.10.RELEASE) [4.0.0.RELEASE,4.1.4.RELEASE) [4.2.0.RELEASE,4.2.1.RELEASE)
  • 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. The strictness of the Spring Security and the Spring Framework request mapping may differ, which could lead to resources not being secured.

How to fix Authentication Bypass?

Upgrade org.springframework.security:spring-security-web to version 4.1.1.RELEASE or higher.

[3.2.0.RELEASE,4.1.1.RELEASE)