CVE-2024-31573
XMLUnit for Java has Insecure Defaults when Processing XSLT Stylesheets
Reported by mitre · Published October 17, 2025
xmlunit-core is fixed in 2.10.0 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.xmlunit:xmlunit-core | Maven Central | 2.10.0 |
| hadoop-fips-3.5 | Chainguard | 3.5.0-r12 |
| xmlunit-javadoc | Amazon Linux | 2.8.2-6.amzn2023.0.4 |
| xmlunit | Amazon Linux | 2.8.2-6.amzn2023.0.4 |
| xmlunit-assertj | Amazon Linux | 2.8.2-6.amzn2023.0.4 |
| xmlunit-matchers | Amazon Linux | 2.8.2-6.amzn2023.0.4 |
| xmlunit-placeholders | Amazon Linux | 2.8.2-6.amzn2023.0.4 |
| xmlunit-legacy | Amazon Linux | 2.8.2-6.amzn2023.0.4 |
| xmlunit-core | Amazon Linux | 2.8.2-6.amzn2023.0.4 |
| XMLUnit for Java | XMLUnit | 2.10.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| XMLUnit | XMLUnit for Java | 2.0.0 |
| chainguard | hadoop-fips-3.5 | 0 |
| amazon:2023 | xmlunit-javadoc | 0 |
| amazon:2023 | xmlunit | 0 |
| amazon:2023 | xmlunit-assertj | 0 |
| amazon:2023 | xmlunit-matchers | 0 |
| amazon:2023 | xmlunit-placeholders | 0 |
| amazon:2023 | xmlunit-legacy | 0 |
| Maven | org.xmlunit:xmlunit-core | 0 |
| amazon:2023 | xmlunit-core | 0 |
| XMLUnit | XMLUnit for Java | 2.0.0 |
Timeline
- May 1, 2024 CVE Published
- Oct 17, 2025 Coalition ESS Score (18 in total, the first dated here)
- Oct 18, 2025 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory
- Apr 21, 2026 PoC Published
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-31573
vulnetix vdb fixes CVE-2024-31573
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-31573/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-31573 advisory
- https://github.com/xmlunit/xmlunit/security/advisories/GHSA-chfm-68vv-pvw5 url
- https://docs.oracle.com/en/java/javase/22/security/java-api-xml-processing-jaxp-security-guide.html#GUID-E345AA09-801E-4B95-B83D-7F0C452538AA url
- https://github.com/xmlunit/xmlunit url