patchminder
Proof of concept · GitHub CVE-2020-5398

Cross-site scriptingin Spring Framework.

Published 16 Jan 2020 · Updated 8 Oct 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
High 8.0
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.0
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 87.5% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed versions listed below
In plain words

In Spring Framework, versions 5.2.x prior to 5.2.3, versions 5.1.x prior to 5.1.13, and versions 5.0.x prior to 5.0.16, an application is vulnerable to a reflected file download (RFD) attack when it sets a "Content-Disposition" header in the response where the filename attribute is derived from user supplied input.

What to do now
  • Upgrade Spring Framework to v5.0.16.RELEASE, v5.1.13.RELEASE, v5.2.3.RELEASE or later, whichever matches your release line.
  • Upgrade org.springframework:spring-webmvc (Maven) to 5.0.16.RELEASE, 5.1.13.RELEASE, 5.2.3.RELEASE or later, whichever matches your release line.
  • Upgrade org.springframework:spring-webflux (Maven) to 5.0.16.RELEASE, 5.1.13.RELEASE, 5.2.3.RELEASE or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Spring Framework
5.0 to before v5.0.16.RELEASE
v5.0.16.RELEASE
CVE record
Spring Framework
5.1 to before v5.1.13.RELEASE
v5.1.13.RELEASE
CVE record
Spring Framework
5.2 to before v5.2.3.RELEASE
v5.2.3.RELEASE
CVE record
org.springframework:spring-webmvc (Maven)
5.2.0.RELEASE to before 5.2.3.RELEASE
5.2.3.RELEASE
GitHub advisory
org.springframework:spring-webmvc (Maven)
5.1.0.RELEASE to before 5.1.13.RELEASE
5.1.13.RELEASE
GitHub advisory
org.springframework:spring-webmvc (Maven)
5.0.0.RELEASE to before 5.0.16.RELEASE
5.0.16.RELEASE
GitHub advisory
org.springframework:spring-webflux (Maven)
5.2.0.RELEASE to before 5.2.3.RELEASE
5.2.3.RELEASE
GitHub advisory
org.springframework:spring-webflux (Maven)
5.1.0.RELEASE to before 5.1.13.RELEASE
5.1.13.RELEASE
GitHub advisory
org.springframework:spring-webflux (Maven)
5.0.0.RELEASE to before 5.0.16.RELEASE
5.0.16.RELEASE
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 3 Jan 2020
    CVE ID reserved by pivotal.
  2. 16 Jan 2020
    Published in the CVE List.
  3. 17 Jan 2020
    First public proof of concept on GitHub.
  4. 8 Oct 2026
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
1 repository
GitHubno warning signs foundmotikan2010/CVE-2020-539884 stars · created 17 Jan 2020CVE-2020-5398 · RFD(Reflected File Download) Attack for Spring MVC

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Framework vulnerabilities

Same weakness: Cross-site scripting

All CWE-79 vulnerabilities

References
Cite this page

Patchminder. CVE-2020-5398: Cross-site scripting in Spring Framework. https://patchminder.com/cve/cve-2020-5398/ (accessed 5 December 2026).