CVE-2026-24400AssertJ has XML External Entity (XXE) vulnerability when parsing untrusted XML via…
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | assertj-core | Fix pending | UBUNTU-CVE-2026-24400 | |
| Ubuntu 26.04 | assertj-core | Under investigation | UBUNTU-CVE-2026-24400 | |
| Ubuntu 25.10 | assertj-core | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-24400 | |
| Ubuntu 24.04 | assertj-core | Under investigation | UBUNTU-CVE-2026-24400 | |
| Ubuntu 22.04 | assertj-core | Under investigation | UBUNTU-CVE-2026-24400 | |
| Ubuntu 20.04 | assertj-core | Fix pending | UBUNTU-CVE-2026-24400 | |
| Ubuntu 18.04 | assertj-core | Fix pending | UBUNTU-CVE-2026-24400 | |
| Ubuntu 16.04 | assertj-core | Fix pending | UBUNTU-CVE-2026-24400 | |
| Debian 14 | assertj-core | Fixed | 3.27.7-1 | DEBIAN-CVE-2026-24400 |
| Debian 13 | assertj-core | Fix pending | DEBIAN-CVE-2026-24400 | |
| Debian 12 | assertj-core | Fix pending | DEBIAN-CVE-2026-24400 | |
| Red Hat Enterprise Linux 10 | assertj-core | Fixed | 0:3.24.2-9.el10_2.1 | RHSA-2026:59372 |
| Red Hat Enterprise Linux 10 | assertj-core-javadoc | Fixed | 0:3.24.2-9.el10_2.1 | RHSA-2026:59372 |
| Red Hat Enterprise Linux 10 | moditect | Not affected | ||
| Red Hat Enterprise Linux 10 | moditect-javadoc | Not affected | ||
| Red Hat Enterprise Linux 9 | assertj-core | Fixed | 0:3.19.0-9.el9_8.1 | RHSA-2026:60215 |
| Red Hat Enterprise Linux 9 | log4j | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | log4j-jcl | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | log4j-slf4j | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | maven-enforcer-api | Not affected | ||
| Red Hat Enterprise Linux 9 | maven-enforcer-plugin | Not affected | ||
| Red Hat Enterprise Linux 9 | maven-enforcer-rules | Not affected | ||
| Red Hat Enterprise Linux 8 | assertj-core | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | assertj-core-javadoc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | log4j | Not affected | ||
| Red Hat Enterprise Linux 8 | log4j-jcl | Not affected | ||
| Red Hat Enterprise Linux 8 | log4j-slf4j | Not affected | ||
| Red Hat Enterprise Linux 8 | log4j-web | Not affected | ||
| Red Hat Enterprise Linux 8 | maven-failsafe-plugin | Not affected | ||
| Red Hat Enterprise Linux 8 | maven-surefire | Not affected | ||
| Red Hat Enterprise Linux 8 | maven-surefire-javadoc | Not affected | ||
| Red Hat Enterprise Linux 8 | maven-surefire-plugin | Not affected | ||
| Red Hat Enterprise Linux 8 | maven-surefire-provider-junit | Not affected | ||
| Red Hat Enterprise Linux 8 | maven-surefire-provider-testng | Not affected | ||
| Red Hat Enterprise Linux 8 | maven-surefire-report-parser | Not affected | ||
| Red Hat Enterprise Linux 8 | maven-surefire-report-plugin | Not affected | ||
| Red Hat Enterprise Linux 8 | powermock | Not affected | ||
| Red Hat Enterprise Linux 8 | powermock-api-easymock | Not affected | ||
| Red Hat Enterprise Linux 8 | powermock-api-mockito | Not affected | ||
| Red Hat Enterprise Linux 8 | powermock-api-support | Not affected | ||
| Red Hat Enterprise Linux 8 | powermock-common | Not affected | ||
| Red Hat Enterprise Linux 8 | powermock-core | Not affected | ||
| Red Hat Enterprise Linux 8 | powermock-javadoc | Not affected | ||
| Red Hat Enterprise Linux 8 | powermock-junit4 | Not affected | ||
| Red Hat Enterprise Linux 8 | powermock-reflect | Not affected | ||
| Red Hat Enterprise Linux 8 | powermock-testng | Not affected | ||
| AlmaLinux 10 | assertj-core | Fixed | 3.24.2-9.el10_2.1 | ALSA-2026:59372 |
| AlmaLinux 10 | assertj-core-javadoc | Fixed | 3.24.2-9.el10_2.1 | ALSA-2026:59372 |
| AlmaLinux 9 | assertj-core | Fixed | 3.19.0-9.el9_8.1 | ALSA-2026:60215 |
| Rocky Linux 10 | assertj-core | Fixed | 0:3.24.2-9.el10_2.1 | RLSA-2026:59372 |
| Rocky Linux 9 | assertj-core | Fixed | 0:3.19.0-9.el9_8.1 | RLSA-2026:60215 |
| Maven library | org.assertj:assertj-core | Fixed | 3.27.7 | GHSA-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.
- assertj: affected: >= 1.4.0, < 3.27.7
References
- https://github.com/assertj/assertj/security/advisories/GHSA-rqfh-9r24-8c9r
- https://github.com/assertj/assertj/commit/85ca7eb6609bb179c043b85ae7d290523b1ba79a
- https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html
- https://github.com/assertj/assertj/releases/tag/assertj-build-3.27.7
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.