# CVE-2024-31573: XMLUnit for Java has Insecure Defaults when Processing XSLT Stylesheets

- Severity: Medium 4.0 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-05-01T16:40:01.000Z
- Modified: 2026-10-02T00:10:00.180Z
- Also known as: GHSA-chfm-68vv-pvw5
- Weaknesses: CWE-669
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- XMLUnit XMLUnit for Java: from 2.0.0 before 2.10.0
- org.xmlunit:xmlunit-core (Maven): before 2.10.0

## Every score

- mitre: CVSS:3.1 4.0 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N`
- GitHub: rating Low

## References

- <https://github.com/xmlunit/xmlunit/issues/264> (exploit, web)
- <https://github.com/advisories/GHSA-chfm-68vv-pvw5>
- <https://github.com/xmlunit/xmlunit/commit/b81d48b71dfd2868bdfc30a3e17ff973f32bc15b> (web)
- <https://github.com/xmlunit/xmlunit/security/advisories/GHSA-chfm-68vv-pvw5> (web)
- <https://docs.oracle.com/en/java/javase/22/security/java-api-xml-processing-jaxp-security-guide.html#GUID-E345AA09-801E-4B95-B83D-7F0C452538AA> (web)
- <https://github.com/xmlunit/xmlunit> (package)

## Sources

- CVE List: [CVE-2024-31573](https://www.cve.org/CVERecord?id=CVE-2024-31573), CVE Terms of Use, modified 2025-10-17
- GitHub Advisory Database: [GHSA-chfm-68vv-pvw5](https://github.com/advisories/GHSA-chfm-68vv-pvw5), CC-BY-4.0, modified 2024-12-05
- NVD: [CVE-2024-31573](https://nvd.nist.gov/vuln/detail/CVE-2024-31573), Public domain, modified 2026-10-02

---

Page: https://cve.day/CVE-2024-31573 · Whole record: https://cve.day/CVE-2024-31573.json · Rebuilt by cve.day 2026-11-25T22:58:52.896Z
