org.springframework:spring-webmvc@6.0.0 vulnerabilities

Direct Vulnerabilities

Known vulnerabilities in the org.springframework:spring-webmvc 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
Improper Access Control

org.springframework:spring-webmvc is a package that provides Model-View-Controller (MVC) architecture and ready components that can be used to develop flexible and loosely coupled web applications.

Affected versions of this package are vulnerable to Improper Access Control when using an un-prefixed double wildcard pattern ("**") in the Spring Security configuration with the mvcRequestMatcher. This configuration creates a pattern-matching discrepancy between Spring Security and Spring MVC, potentially allowing unauthorized access.

Note: The Spring security team have published information about an existing PoC, but have not shared the PoC itself publicly, therefore we don't currently have the ability to verify it.

How to fix Improper Access Control?

Upgrade org.springframework:spring-webmvc to version 5.3.26, 6.0.7 or higher.

[5.3.0,5.3.26) [6.0.0,6.0.7)