CVE-2020-5397
CSRF Attack via CORS Preflight Requests with Spring MVC or Spring WebFlux
Reported by pivotal · Published January 17, 2020
spring-webmvc is fixed in 5.2.3 (Maven Central)
Spring Framework, versions 5.2.x prior to 5.2.3 are vulnerable to CSRF attacks 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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.springframework:spring-webmvc | Maven Central | 5.2.3 |
| org.springframework:spring-webflux | Maven Central | 5.2.3 |
| org.springframework:spring-oxm | Maven Central | 5.2.3 |
| mysql_enterprise_monitor | oracle | 8.0.20, 4.0.12 |
| Spring Framework | Spring | v5.2.3.RELEASE, 5.2.3.RELEASE |
| insurance_calculation_engine | oracle | 11.3.1 |
| communications_diameter_signaling_router | oracle | 8.2.2 |
| spring_framework | vmware | 5.2.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Spring | Spring Framework | 5.2 |
| Spring | Spring Framework | 5.2 |
| Maven | org.springframework:spring-webflux | 5.2.0 |
| Maven | org.springframework:spring-oxm | 5.2.0 |
| Maven | org.springframework:spring-webmvc | 5.2.0 |
Timeline
- Jan 16, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory
- Aug 30, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-5397
vulnetix vdb fixes CVE-2020-5397
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-5397/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2020-5397 advisory