A Server-Side Forgery Request vulnerability in XStream via PriorityQueue unmarshaling
Description
XStream is a simple library to serialize objects to XML and back again. In affected versions this vulnerability may allow a remote attacker to request data from internal resources that are not publicly available only by manipulating the processed input stream with a Java runtime version 14 to 8. 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.18.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
XStream before 1.4.18 allows SSRF when unmarshalling crafted XML, letting a remote attacker access internal resources.
Vulnerability
XStream versions up to and including 1.4.17, when used with Java runtime versions 14 to 8, allow a Server-Side Request Forgery (SSRF) attack during XML unmarshalling. An attacker can inject or replace type information in the processed input stream to force XStream to make requests to arbitrary URLs, including internal or localhost resources [1][2]. Users who configured XStream's security framework with a whitelist are not affected [1][2].
Exploitation
An attacker needs only the ability to provide a crafted XML input stream to an application that unmarshals it using XStream. No authentication or special network position is required beyond sending the payload. The attacker creates a PriorityQueue marshalled to XML, then replaces the content with a malicious snippet that includes a dynamic proxy handler (e.g., com.sun.xml.internal.ws.client.sei.SEIStub) to trigger an HTTP request to an arbitrary URL [2].
Impact
Successful exploitation allows the attacker to perform server-side requests to internal or external resources accessible by the XStream application, potentially disclosing sensitive data from internal networks (e.g., cloud metadata endpoints, internal APIs) or the local host. This is primarily an information disclosure vulnerability with limited impact on integrity or availability [1][2].
Mitigation
XStream version 1.4.18 contains the fix for this vulnerability; users relying on the default blacklist security framework should upgrade to at least that version [1][2]. Administrators who follow the recommendation to set up XStream's security framework with a whitelist limited to the minimal required types are not affected [1][2]. As of the publication date (2021-08-23), no other workarounds have been disclosed.
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
com.thoughtworks.xstream:xstreamMaven | < 1.4.18 | 1.4.18 |
Affected products
6- ghsa-coords5 versionspkg:maven/com.thoughtworks.xstream/xstreampkg:rpm/suse/xstream&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP2pkg:rpm/suse/xstream&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP3pkg:rpm/suse/xstream&distro=SUSE%20Manager%20Server%20Module%204.1pkg:rpm/suse/xstream&distro=SUSE%20Manager%20Server%20Module%204.2
< 1.4.18+ 4 more
- (no CPE)range: < 1.4.18
- (no CPE)range: < 1.4.18-3.14.1
- (no CPE)range: < 1.4.18-3.14.1
- (no CPE)range: < 1.4.18-3.14.1
- (no CPE)range: < 1.4.18-3.14.1
- x-stream/xstreamv5Range: < 1.4.18
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
17- github.com/advisories/GHSA-cxfm-5m4g-x7xpghsaADVISORY
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHP/mitrevendor-advisoryx_refsource_FEDORA
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7/mitrevendor-advisoryx_refsource_FEDORA
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREB/mitrevendor-advisoryx_refsource_FEDORA
- nvd.nist.gov/vuln/detail/CVE-2021-39150ghsaADVISORY
- www.debian.org/security/2021/dsa-5004ghsavendor-advisoryx_refsource_DEBIANWEB
- github.com/x-stream/xstream/security/advisories/GHSA-cxfm-5m4g-x7xpghsax_refsource_CONFIRMWEB
- lists.debian.org/debian-lts-announce/2021/09/msg00017.htmlghsamailing-listx_refsource_MLISTWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/22KVR6B5IZP3BGQ3HPWIO2FWWCKT3DHPghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PVPHZA7VW2RRSDCOIPP2W6O5ND254TU7ghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QGXIU3YDPG6OGTDHMBLAFN7BPBERXREBghsaWEB
- security.netapp.com/advisory/ntap-20210923-0003ghsaWEB
- security.netapp.com/advisory/ntap-20210923-0003/mitrex_refsource_CONFIRM
- www.oracle.com/security-alerts/cpuapr2022.htmlghsax_refsource_MISCWEB
- www.oracle.com/security-alerts/cpujan2022.htmlghsax_refsource_MISCWEB
- www.oracle.com/security-alerts/cpujul2022.htmlghsax_refsource_MISCWEB
- x-stream.github.io/CVE-2021-39150.htmlghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.