CVEfocus › CVE database › CVE-2026-24400

CVE-2026-24400AssertJ has XML External Entity (XXE) vulnerability when parsing untrusted XML via…

CVSS 8.2 HighEPSS 0.8% (higher than 51% of CVEs)Published 2026-01-26Updated 2026-01-27Assigner: GitHub_M

AssertJ provides Fluent testing assertions for Java and the Java Virtual Machine (JVM). Starting in version 1.4.0 and prior to version 3.27.7, an XML External Entity (XXE) vulnerability exists in `org.assertj.core.util.xml.XmlStringPrettyFormatter`: the `toXmlDocument(String)` method initializes `DocumentBuilderFactory` with default settings, without disabling DTDs or external entities. This formatter is used by the `isXmlEqualTo(CharSequence)` assertion for `CharSequence` values. An application is vulnerable only when it uses untrusted XML input with either `isXmlEqualTo(CharSequence)` from `org.assertj.core.api.AbstractCharSequenceAssert` or `xmlPrettyFormat(String)` from `org.assertj.core.util.xml.XmlStringPrettyFormatter`. If untrusted XML input is processed by tone of these methods, an attacker couldnread arbitrary local files via `file://` URIs (e.g., `/etc/passwd`, application configuration files); perform Server-Side Request Forgery (SSRF) via HTTP/HTTPS URIs, and/or cause Denial of Service via "Billion Laughs" entity expansion attacks. `isXmlEqualTo(CharSequence)` has been deprecated in favor of XMLUnit in version 3.18.0 and will be removed in version 4.0. Users of affected versions should, in order of preference: replace `isXmlEqualTo(CharSequence)` with XMLUnit, upgrade to version 3.27.7, or avoid using `isXmlEqualTo(CharSequence)` or `XmlStringPrettyFormatter` with untrusted input. `XmlStringPrettyFormatter` has historically been considered a utility for `isXmlEqualTo(CharSequence)` rather than a feature for AssertJ users, so it is deprecated in version 3.27.7 and removed in version 4.0, with no replacement.

CWE-611

What to do

Fixed builds are available from AlmaLinux, Debian, Maven, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

10Fixed
6Fix pending
3Under investigation
6Will not fix
27Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10assertj-coreFix pendingUBUNTU-CVE-2026-24400
Ubuntu 26.04assertj-coreUnder investigationUBUNTU-CVE-2026-24400
Ubuntu 25.10assertj-coreWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-24400
Ubuntu 24.04assertj-coreUnder investigationUBUNTU-CVE-2026-24400
Ubuntu 22.04assertj-coreUnder investigationUBUNTU-CVE-2026-24400
Ubuntu 20.04assertj-coreFix pendingUBUNTU-CVE-2026-24400
Ubuntu 18.04assertj-coreFix pendingUBUNTU-CVE-2026-24400
Ubuntu 16.04assertj-coreFix pendingUBUNTU-CVE-2026-24400
Debian 14assertj-coreFixed3.27.7-1DEBIAN-CVE-2026-24400
Debian 13assertj-coreFix pendingDEBIAN-CVE-2026-24400
Debian 12assertj-coreFix pendingDEBIAN-CVE-2026-24400
Red Hat Enterprise Linux 10assertj-coreFixed0:3.24.2-9.el10_2.1RHSA-2026:59372
Red Hat Enterprise Linux 10assertj-core-javadocFixed0:3.24.2-9.el10_2.1RHSA-2026:59372
Red Hat Enterprise Linux 10moditectNot affected
Red Hat Enterprise Linux 10moditect-javadocNot affected
Red Hat Enterprise Linux 9assertj-coreFixed0:3.19.0-9.el9_8.1RHSA-2026:60215
Red Hat Enterprise Linux 9log4jWill not fix
Will not fix
Red Hat Enterprise Linux 9log4j-jclWill not fix
Will not fix
Red Hat Enterprise Linux 9log4j-slf4jWill not fix
Will not fix
Red Hat Enterprise Linux 9maven-enforcer-apiNot affected
Red Hat Enterprise Linux 9maven-enforcer-pluginNot affected
Red Hat Enterprise Linux 9maven-enforcer-rulesNot affected
Red Hat Enterprise Linux 8assertj-coreWill not fix
Will not fix
Red Hat Enterprise Linux 8assertj-core-javadocWill not fix
Will not fix
Red Hat Enterprise Linux 8log4jNot affected
Red Hat Enterprise Linux 8log4j-jclNot affected
Red Hat Enterprise Linux 8log4j-slf4jNot affected
Red Hat Enterprise Linux 8log4j-webNot affected
Red Hat Enterprise Linux 8maven-failsafe-pluginNot affected
Red Hat Enterprise Linux 8maven-surefireNot affected
Red Hat Enterprise Linux 8maven-surefire-javadocNot affected
Red Hat Enterprise Linux 8maven-surefire-pluginNot affected
Red Hat Enterprise Linux 8maven-surefire-provider-junitNot affected
Red Hat Enterprise Linux 8maven-surefire-provider-testngNot affected
Red Hat Enterprise Linux 8maven-surefire-report-parserNot affected
Red Hat Enterprise Linux 8maven-surefire-report-pluginNot affected
Red Hat Enterprise Linux 8powermockNot affected
Red Hat Enterprise Linux 8powermock-api-easymockNot affected
Red Hat Enterprise Linux 8powermock-api-mockitoNot affected
Red Hat Enterprise Linux 8powermock-api-supportNot affected
Red Hat Enterprise Linux 8powermock-commonNot affected
Red Hat Enterprise Linux 8powermock-coreNot affected
Red Hat Enterprise Linux 8powermock-javadocNot affected
Red Hat Enterprise Linux 8powermock-junit4Not affected
Red Hat Enterprise Linux 8powermock-reflectNot affected
Red Hat Enterprise Linux 8powermock-testngNot affected
AlmaLinux 10assertj-coreFixed3.24.2-9.el10_2.1ALSA-2026:59372
AlmaLinux 10assertj-core-javadocFixed3.24.2-9.el10_2.1ALSA-2026:59372
AlmaLinux 9assertj-coreFixed3.19.0-9.el9_8.1ALSA-2026:60215
Rocky Linux 10assertj-coreFixed0:3.24.2-9.el10_2.1RLSA-2026:59372
Rocky Linux 9assertj-coreFixed0:3.19.0-9.el9_8.1RLSA-2026:60215
Maven libraryorg.assertj:assertj-coreFixed3.27.7GHSA-rqfh-9r24-8c9r

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.