Cross-Site Request Forgery (CSRF) Affecting org.springframework:spring-webmvc package, versions [5.2.0, 5.2.3)
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JAVA-ORGSPRINGFRAMEWORK-542933
- published 22 Jan 2020
- disclosed 16 Jan 2020
- credit Eric Zimanyi
Introduced: 16 Jan 2020
CVE-2020-5397 Open this link in a new tabHow to fix?
Upgrade org.springframework:spring-webmvc
to version 5.2.3 or higher.
Overview
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 Cross-Site Request Forgery (CSRF) through CORS preflight requests that target Spring MVC (spring-webmvc
module) or Spring WebFlux (spring-webflux
module) endpoints. Only non-authenticated endpoints are vulnerable because preflight requests should not include credentials and therefore requests should fail authentication. However a notable exception to this are Chrome based browsers when using client certificates for authentication since Chrome sends TLS client certificates in CORS preflight requests in violation of spec requirements. No HTTP body can be sent or received as a result of this attack.