# CVE-2020-5397: CSRF attack via CORS preflight requests with Spring MVC or Spring WebFlux

Source: https://junglewise.ai/threats/cve-2020-5397-csrf-attack-via-cors-preflight-requests-with-spring-mvc-or-spring  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2020-01-21  
License: CC BY 4.0 with a link back

CVE-2020-5397 · Severity: low · CVSS 3 · Published 2020-01-21

CSRF attack via CORS preflight requests with Spring MVC or Spring WebFlux

Technologies: [org.springframework:spring-webflux (Maven)](https://junglewise.ai/threats/technologies/org-springframework-spring-webflux), [org.springframework:spring-webmvc (Maven)](https://junglewise.ai/threats/technologies/org-springframework-spring-webmvc). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2020-5397 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2020-5397 being exploited in the wild.

**How severe is CVE-2020-5397?** Low severity, with a CVSS score of 3, published 21 January 2020.

**Which products and versions are affected?** org.springframework:spring-webflux (Maven) ECOSYSTEM:introduced=5.2.0,fixed=5.2.3; org.springframework:spring-webmvc (Maven) ECOSYSTEM:introduced=5.2.0,fixed=5.2.3.

**Is there a fix for CVE-2020-5397?** Yes. org.springframework:spring-webflux (Maven): upgrade to 5.2.3 or later; org.springframework:spring-webmvc (Maven): upgrade to 5.2.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2020-5397?** Check whether you run org.springframework:spring-webflux (Maven) or org.springframework:spring-webmvc (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.springframework:spring-webflux (Maven): upgrade to 5.2.3 or later

  ```sh
  # set org.springframework:spring-webflux to 5.2.3 in your pom.xml or build.gradle
  ```

- org.springframework:spring-webmvc (Maven): upgrade to 5.2.3 or later

  ```sh
  # set org.springframework:spring-webmvc to 5.2.3 in your pom.xml or build.gradle
  ```


## Affected products

- org.springframework:spring-webflux (Maven) ECOSYSTEM:introduced=5.2.0,fixed=5.2.3
- org.springframework:spring-webmvc (Maven) ECOSYSTEM:introduced=5.2.0,fixed=5.2.3

## Identifiers

- CVE-2020-5397
- GHSA-7pm4-g2qj-j85x

## Related threats

- [Spring Framework Server Sent Event stream corruption while rendering fragments](https://junglewise.ai/threats/cve-2026-47890-spring-framework-server-sent-event-stream-corruption-while)
- [Spring Framework header predicate bypass in WebFlux functional endpoints](https://junglewise.ai/threats/cve-2026-47892-spring-framework-header-predicate-bypass-in-webflux-functional)
- [Spring Framework SSRF and RCE in XsltView](https://junglewise.ai/threats/cve-2026-47884-spring-framework-ssrf-and-rce-in-xsltview)
- [VMware Spring Framework denial of service in static resource resolution](https://junglewise.ai/threats/cve-2026-41842-vmware-spring-framework-dos-in-static-resource-resolution)
- [VMware Spring Framework multipart request smuggling in MVC and WebFlux](https://junglewise.ai/threats/cve-2026-41853-vmware-spring-framework-multipart-request-smuggling-in-mvc-and)
