Uncaught exception in com.ctc.wstx.dtd.FullDTDReader.readContentSpec in xstream

xstream Updated 02 Oct 2025

Summary

04/06/2022
LOW
Yes i
Low
Not published

OSV-2022-455: Uncaught exception in com.ctc.wstx.dtd.FullDTDReader.readContentSpec. Affects xstream versions >= eb21c8d3b0c98e7312b65cb53cecbb4c54f6c9ee, < eb21c8d3b0c98e7312b65cb53cecbb4c54f6c9ee. Fixed in eb21c8d3b0c98e7312b65cb53cecbb4c54f6c9ee. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

xstream is an open-source library for serializing Java objects to XML and back. It provides a simple API for converting objects to XML and vice versa. This vulnerability affects the xstream package and can lead to uncaught exceptions in the FullDTDReader.readContentSpec method.

Vulnerability Detail

The vulnerability occurs when the FullDTDReader.readContentSpec method encounters an uncaught exception. This can result in a crash, causing the application to become unresponsive or terminate unexpectedly. The issue has been reported in the OSS-Fuzz project and is considered to have a low severity level. More details about the crash state can be found in the provided OSS-Fuzz report.

How To Fix

Minimum fixed version

eb21c8d3b0c98e7312b65cb53cecbb4c54f6c9ee

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

In conclusion, the xstream package is vulnerable to an uncaught exception in the FullDTDReader.readContentSpec method. To mitigate this vulnerability, it is recommended to update the package to the latest version. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for xstream →

Share this vulnerability

FAQ

xstream is an open-source library for serializing Java objects to XML and back. It provides a simple API for converting objects to XML and vice versa.

The vulnerability can lead to crashes in applications using the xstream package, causing them to become unresponsive or terminate unexpectedly.

To fix this vulnerability, update the xstream package to the latest version that includes the fix for this issue.

No specific workaround has been mentioned for this vulnerability.

You can find more information about this vulnerability in the provided OSS-Fuzz report and the associated source code repository.

Related vulnerabilities

Recent vulnerabilities recorded for xstream.

How To Fix

Minimum fixed version

eb21c8d3b0c98e7312b65cb53cecbb4c54f6c9ee

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback