Unsafe deserializationin XStream.
Proof of concept public (GitHub).
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.
- Upgrade xstream to 1.4.16 or later.
- Upgrade com.thoughtworks.xstream:xstream (Maven) to 1.4.16 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 22 Dec 2020CVE ID reserved by GitHub_M.
- 22 Mar 2021Published in the CVE List.
- 9 May 2021First public proof of concept on GitHub.
- 7 Oct 2026CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.
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.
Report a link
Other XStream vulnerabilities
Same weakness: Deserialization of untrusted data
- x-stream.github.io x_refsource_MISC
- x-stream.github.io x_refsource_MISC
- github.com x_refsource_CONFIRM
- x-stream.github.io x_refsource_MISC
- lists.debian.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- security.netapp.com x_refsource_CONFIRM
- www.oracle.com x_refsource_MISC
- lists.fedoraproject.org vendor-advisory, x_refsource_FEDORA
- lists.fedoraproject.org vendor-advisory, x_refsource_FEDORA
- www.oracle.com x_refsource_MISC
- lists.fedoraproject.org vendor-advisory, x_refsource_FEDORA
- www.debian.org vendor-advisory, x_refsource_DEBIAN
- www.oracle.com x_refsource_MISC
Patchminder. CVE-2021-21349: Unsafe deserialization in XStream. https://patchminder.com/cve/cve-2021-21349/ (accessed 5 December 2026).