Spring Framework Open Redirect in Spring MVC and WebFlux
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.
Description: CWE-601: URL Redirection to Untrusted Site (Open Redirect)
Metrics
Version
Base score
Base severity
Vector
3.1
4.2
MEDIUM
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
Version:3.1
Base score:4.2
Base severity: MEDIUM
Vector:
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
Metrics Other Info
Impacts
CAPEC ID
Description
N/A
An attacker can craft a URL that causes a 302 redirect to an arbitrary external host or an internal forward via the redirect: or forward: prefixes in Spring MVC and WebFlux wildcard mappings.
CAPEC ID: N/A
Description: An attacker can craft a URL that causes a 302 redirect to an arbitrary external host or an internal forward via the redirect: or forward: prefixes in Spring MVC and WebFlux wildcard mappings.