VDB

CVE-2020-5397

CVE-2020-5397 PUBLISHED CVSS 5.3 MEDIUM

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.

PackageEcosystemFixed in
org.springframework:spring-webmvcMaven Central5.2.3
org.springframework:spring-webfluxMaven Central5.2.3
org.springframework:spring-oxmMaven Central5.2.3
mysql_enterprise_monitororacle8.0.20, 4.0.12
Spring FrameworkSpringv5.2.3.RELEASE, 5.2.3.RELEASE
insurance_calculation_engineoracle11.3.1
communications_diameter_signaling_routeroracle8.2.2
spring_frameworkvmware5.2.3

Risk scores

CVSS 3.0
5.3
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Affected products

VendorProductVersions
SpringSpring Framework5.2
SpringSpring Framework5.2
Mavenorg.springframework:spring-webflux5.2.0
Mavenorg.springframework:spring-oxm5.2.0
Mavenorg.springframework:spring-webmvc5.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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›