CVE-2021-21341

published 22 Mar 2021 · updated 7 Oct 2026

XStream can cause a Denial of Service

8.5HighCVSS 7.5EPSS 78%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 78%. No fixed version is recorded.

XStream is a Java library to serialize objects to XML and back again. In XStream before version 1.4.16, there is vulnerability which may allow a remote attacker to allocate 100% CPU time on the target system depending on CPU type or parallel execution of such a payload resulting in a denial of service 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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
x-stream<1.4.16

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-21341 severity on Zeptric[![CVE-2021-21341](https://zeptric.io/badge/cve/CVE-2021-21341.svg)](https://zeptric.io/cve/CVE-2021-21341)