---
id: CVE-2024-31573
title: >-
  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.
summary: >-
  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.
severity: medium
cvss: 4
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N'
cwe:
  - CWE-669
published: '2025-10-17'
updated: '2026-10-02'
sourceUpdated: '2026-10-02T00:10:00.180'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-31573'
references:
  - url: 'https://github.com/advisories/GHSA-chfm-68vv-pvw5'
    label: cve@mitre.org
  - url: >-
      https://github.com/xmlunit/xmlunit/commit/b81d48b71dfd2868bdfc30a3e17ff973f32bc15b
    label: cve@mitre.org
  - url: 'https://github.com/xmlunit/xmlunit/issues/264'
    label: cve@mitre.org
  - url: 'https://github.com/xmlunit/xmlunit/issues/264'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
epss: 0.00237
epssPercentile: 0.13311
ingestedAt: '2026-10-02T01:05:54.701Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
