Spring Framework Open Redirect in Spring MVC and WebFlux
Spring Framework
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.springframework:spring-webmvc Maven |
|
|
| org.springframework:spring-webflux Maven |
Spring Framework
| Product | Affected | Fixed in |
|---|---|---|
| org.springframework:spring-webmvc Maven |
|
|
| org.springframework:spring-webflux Maven |
|
|
A Spring MVC or Spring WebFlux application which configures a mapping for "/**" where the view name is not explicitly specified allows an attacker to craft a link resulting in a 302 redirect to an arbitrary external host via the redirect: prefix.
Affected versions: Spring Framework 7.0.0 through 7.0.7; 6.2.0 through 6.2.18; 6.1.0 through 6.1.27; 5.3.0 through 5.3.48.
From the CVE record · vmware
Spring MVC and Spring WebFlux applications are vulnerable when they map "/**" without explicitly specifying a view name. An attacker can craft a link that, when followed, causes a 302 redirect to an arbitrary external host via the redirect: prefix. The input does not specify whether authentication is required.
Teams running Spring MVC or Spring WebFlux should check Spring Framework 7.0.0–7.0.7, 6.2.0–6.2.18, and the affected 6.1 and 5.3 releases listed in the advisory.