spring-security-web is vulnerable to Open Redirect
61
Medium Risk
Affected versions of Spring Security may allow an open redirect after login when CookieRequestCache or CookieServerRequestCache is used to persist the original request URL in a browser cookie. Because the absolute URL from the REDIRECT_URI cookie is reused without validation, an attacker who can tamper with that cookie may force the application to send the user to an attacker-controlled site after successful authentication. In practice, this could be exploited through cookie injection from a related subdomain, HTTP response splitting, or a downgrade from HTTPS to HTTP, enabling convincing phishing flows that abuse the trusted login process.
You are affected if you are using a version that falls within the vulnerable range and you are using CookieRequestCache (Servlet) or CookieServerRequestCache (WebFlux) as its RequestCache implementation.
spring-security-web is vulnerable to Open Redirect in versions 0.0.1 - 5.7.23, 5.8.0 - 5.8.25, 6.0.0 - 6.3.16, 6.4.0 - 6.4.16, 6.5.0 - 6.5.10 and 7.0.0 - 7.0.5.
Upgrade the org.springframework.security:spring-security-web library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant