Incorrect Resource Transfer Between Spheres Affecting xmlunit-legacy package, versions <0:2.8.2-6.amzn2023.0.4


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.09% (27th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2023-XMLUNITLEGACY-13880934
  • published11 Nov 2025
  • disclosed17 Oct 2025

Introduced: 17 Oct 2025

NewCVE-2024-31573  (opens in a new tab)
CWE-669  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 xmlunit-legacy to version 0:2.8.2-6.amzn2023.0.4 or higher.
This issue was patched in ALAS2023-2025-1260.

NVD Description

Note: Versions mentioned in the description apply only to the upstream xmlunit-legacy package and not the xmlunit-legacy package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1