CVE-2024-31573 Details
Description
XMLUnit for Java before 2.10.0, in the default configuration, might allow code execution via an untrusted stylesheet (used for an XSLT transformation), because XSLT extension functions are enabled.
A remote code execution vulnerability exists in XMLUnit for Java versions prior to 2.10.0. In the default configuration, the vulnerability arises from the XSLT processor allowing extension functions, which could be exploited to execute arbitrary code via an untrusted stylesheet during XSLT transformations. This issue is particularly concerning because if the stylesheet can be provided externally, it may lead to remote code execution.
Users should upgrade to XMLUnit for Java version 2.10.0 or later, where the default configuration has been changed to disable extension functions. Instructions for updating XMLUnit can be found in the GitHub repository's release notes.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 17, 2025CISA-ADP
Assessed Oct 17, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/xmlunit/xmlunit/issues/264 | CISA-ADP | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/advisories/GHSA-chfm-68vv-pvw5 | [email protected] | AdvisoryRemedyVendor |
| https://github.com/xmlunit/xmlunit/commit/b81d48b71dfd2868bdfc30a3e17ff973f32bc15b | [email protected] | Source CodeVendor |
| https://github.com/xmlunit/xmlunit/issues/264 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-669 | Incorrect Resource Transfer Between Spheres | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| org.xmlunit:xmlunit-core | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 2, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 17, 2025 | New CVE Received | [email protected] |
| Oct 17, 2025 | CVE Modified | CISA-ADP |
Volerion