patchminder
Proof of concept · GitHub CVE-2021-21349

Unsafe deserializationin XStream.

Published 22 Mar 2021 · Updated 7 Oct 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
Medium 6.1
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
High
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 46.8% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 1.4.16 or later
In plain words

XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.16, there is a vulnerability which may allow a remote attacker to request data from internal resources that are not publicly available only by manipulating the processed input stream. No user is affected, who followed the recommendation to setup XStream's security framework with a whitelist limited to the minimal required types. If you rely on XStream's default blacklist of the Security Framework, you will have to use at least version 1.4.16.

What to do now
  • Upgrade xstream to 1.4.16 or later.
  • Upgrade com.thoughtworks.xstream:xstream (Maven) to 1.4.16 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
xstream
before 1.4.16
1.4.16
CVE record
com.thoughtworks.xstream:xstream (Maven)
before 1.4.16
1.4.16
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. 22 Dec 2020
    CVE ID reserved by GitHub_M.
  2. 22 Mar 2021
    Published in the CVE List.
  3. 9 May 2021
    First public proof of concept on GitHub.
  4. 7 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 founds-index/CVE-2021-213491 stars · created 9 May 2021XStream SSRF CVE-2021-21349

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 XStream vulnerabilities

Same weakness: Deserialization of untrusted data

All CWE-502 vulnerabilities

References
Cite this page

Patchminder. CVE-2021-21349: Unsafe deserialization in XStream. https://patchminder.com/cve/cve-2021-21349/ (accessed 5 December 2026).