Skip to content
Fencer Intel
medium 5.3

CVE-2020-5397 json

CSRF Attack via CORS Preflight Requests with Spring MVC or Spring WebFlux

published 6y ago modified 4mo ago also GHSA-7pm4-g2qj-j85x , EUVD-2020-0253

cvss
5.3
version 3.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
2.6%
EPSS 2.6% chance of exploitation in 30 days, percentile 85%
public exploits
0
none known

Summary

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.

Patch / fix

  • maven org.springframework:spring-webmvc 5.2.3
  • maven org.springframework:spring-webflux 5.2.3
  • Spring Spring Framework v5.2.3.RELEASE

Is CVE-2020-5397 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2020-5397 updated cvss 5.3

springframework: CSRF attack via CORS Preflight Requests with Spring MVC or Spring WebFlux

  • Red Hat JBoss BRMS 5 springframework springframework Red Hat JBoss Data Virtualization 6 springframework springframework Red Hat JBoss Fuse 6 springframework springframework Red Hat JBoss Fuse Service Works 6 springframework springframework Red Hat JBoss SOA Platform 5 springframework springframework
    affected: no fix planned “Out of support scope”
  • Red Hat Fuse 7 springframework springframework Red Hat Storage 3 rhevm-dependencies Red Hat Virtualization 4 rhvm-dependencies
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.55% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • pivotal.io https://pivotal.io/security/cve-2020-5397 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.0 5.3 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
NVD 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
NVD 2.0 2.6 AV:N/AC:H/Au:N/C:N/I:P/A:N
GitHub 3.0 5.3 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Affected packages

ecosystem package affected fixed in
maven org.springframework:spring-webmvc
>=5.2.0, <5.2.3
5.2.3
maven org.springframework:spring-webflux
>=5.2.0, <5.2.3
5.2.3

Affected products

  • Spring Spring Framework

Classification

Weakness
  • CWE-352 Cross-Site Request Forgery
Technology feeds

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.