CVE-2026-24400 json
AssertJ has XML External Entity (XXE) vulnerability when parsing untrusted XML via isXmlEqualTo assertion
published 2026-01-26 9 mo ago modified 2026-06-17 4 mo ago also GHSA-rqfh-9r24-8c9r , EUVD-2026-4724
- cvss
- 9.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 47%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.assertj:assertj-core 3.27.7
- assertj assertj 3.27.7
- assertj-core RHEL 9 3.19.0-9.el9_8.1
- assertj-core RHEL 10.2 3.24.2-9.el10_2.1
- assertj-core-javadoc RHEL 10.2 3.24.2-9.el10_2.1
- assertj-core enterprise linux eus 10.0 3.24.2-9.el10_0.1
- assertj-core-javadoc enterprise linux eus 10.0 3.24.2-9.el10_0.1
- assertj-core RHEL 9.4 E4S 3.19.0-5.el9_4.2
- assertj-core RHEL 9.2 E4S 3.19.0-5.el9_2.2
- assertj-core RHEL 9.6 EUS 3.19.0-9.el9_6.1
red hat advisories RHSA-2026:69106RHSA-2026:60215RHSA-2026:59372RHSA-2026:58957RHSA-2026:58956RHSA-2026:58949
- assertj-core SLES for SAP applications 16.0, SLES 16.0 3.27.7-160000.1.1
- assertj-core openSUSE Leap 15.6 3.27.7-150200.5.9.2
suse advisories SUSE-SU-2026:20604-1SUSE-SU-2026:0344-1
- assertj-core openSUSE Leap 16.0 3.27.7-160000.1.1
- assertj-core openSUSE Tumbleweed 3.27.7-1.1
opensuse advisories openSUSE-SU-2026:20298-1openSUSE-SU-2026:10106-1
- assertj-core AlmaLinux 9 3.19.0-9.el9_8.1
- assertj-core AlmaLinux 10 3.24.2-9.el10_2.1
- assertj-core-javadoc AlmaLinux 10 3.24.2-9.el10_2.1
almalinux advisories ALSA-2026:60215ALSA-2026:59372
- assertj-core Rocky Linux 9 3.19.0-9.el9_8.1
- assertj-core Rocky Linux 10 3.24.2-9.el10_2.1
rocky linux advisories RLSA-2026:60215RLSA-2026:59372
- javapackages-bootstrap Azure Linux 3.0 1.14.0-4
azure linux advisories AZL-75431
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-24400 updated cvss 6.1
assertj: AssertJ: Information disclosure and denial of service via XML External Entity (XXE)
-
Red Hat OpenShift Serverless openshift-serverless-1/kn-ekb-receiver-rhel9, openshift-serverless-1/kn-ekb-dispatcher-rhel9 Red Hat build of Debezium 2 assertj-coreaffected: no fix available
-
Red Hat build of Debezium 3 assertj-coreaffected: no fix planned “Will not fix”
-
Red Hat build of OptaPlanner 8 assertj-coreaffected: no fix available
-
Red Hat Enterprise Linux 8 assertj-core, assertj-core-javadoc Red Hat Enterprise Linux 9 log4j, log4j-jcl, log4j-slf4j Red Hat Fuse 7 assertj-core Red Hat JBoss Enterprise Application Platform 8 assertj-coreaffected: no fix planned “Will not fix”
-
Red Hat Process Automation 7 assertj-coreaffected: no fix available
-
Red Hat streams for Apache Kafka 3 assertj-coreaffected: no fix planned “Will not fix”
-
Red Hat AMQ Clients 2026.Q3fixed: vendor fix RHSA-2026:69459
-
Red Hat HawtIO HawtIO 4.4.0fixed: vendor fix RHSA-2026:25089
show 17 moreshow fewer
-
Red Hat build of Apache Camel 4.18.1.P1 for Spring Boot 3.5.16fixed: vendor fix RHSA-2026:37390
-
Red Hat Enterprise Linux AppStream (v. 9) assertj-core 3.19.0-9.el9_8.1fixed: vendor fix RHSA-2026:60215
-
Red Hat Enterprise Linux AppStream (v. 10) assertj-core 3.24.2-9.el10_2.1fixed: vendor fix RHSA-2026:59372
-
Red Hat Enterprise Linux AppStream E4S (v.9.2) assertj-core 3.19.0-5.el9_2.2fixed: vendor fix RHSA-2026:58956
-
Red Hat Enterprise Linux AppStream E4S (v.9.4) assertj-core 3.19.0-5.el9_4.2fixed: vendor fix RHSA-2026:58957
-
Red Hat Enterprise Linux AppStream EUS (v. 10.0) assertj-core 3.24.2-9.el10_0.1fixed: vendor fix RHSA-2026:69106
-
Red Hat Enterprise Linux AppStream EUS (v.9.6) assertj-core 3.19.0-9.el9_6.1fixed: vendor fix RHSA-2026:58949
-
Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) assertj-core-javadoc 3.24.2-9.el10_2.1fixed: vendor fix RHSA-2026:59372
-
Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0) assertj-core-javadoc 3.24.2-9.el10_0.1fixed: vendor fix RHSA-2026:69106
-
Red Hat AMQ Broker 7 assertj-core Red Hat build of Apache Camel 4 for Quarkus 3 assertj-corenot affected: component not present
-
Red Hat build of Apicurio Registry 3 assertj-corenot affected: vulnerable code not present
-
Red Hat Data Grid 8 assertj-corenot affected: component not present
-
Red Hat Enterprise Linux 8 log4j, log4j-jcl, log4j-web, powermock, log4j-slf4j, maven-surefire, +16 morenot affected: vulnerable code not present
-
Red Hat Enterprise Linux 9 maven-enforcer-api, maven-enforcer-rules, maven-enforcer-plugin Red Hat Enterprise Linux 10 moditectnot affected: component not present
-
Red Hat JBoss Enterprise Application Platform 7 assertj-core Red Hat JBoss Enterprise Application Platform Expansion Pack assertj-core Red Hat OpenShift AI (RHOAI) rhoai/odh-trustyai-service-rhel8, rhoai/odh-trustyai-service-rhel9 Red Hat OpenShift Dev Spaces devspaces/udi-rhel9, devspaces/udi-base-rhel9, devspaces/dashboard-rhel9, devspaces/udi-base-rhel10, devspaces/devspaces-operator-bundle Red Hat Single Sign-On 7 assertj-corenot affected: vulnerable code not present
-
Red Hat streams for Apache Kafka 2 assertj-corenot affected: vulnerable code not in execute path
-
Red Hat streams for Apache Kafka 3 rocksdbjninot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 9 mo ago
Exploit prediction
0.57% chance of exploitation in the next 30 days, higher than 47% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 8.2 | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:L/SC:H/SI:N/SA:N |
| CNA | 4.0 | 8.2 | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:L/SC:H/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.assertj:assertj-core | >=1.4.0, <3.27.7 |
3.27.7 |
Affected products
- assertj assertj
Classification
- Weakness
-
- CWE-611 Improper Restriction of XML External Entity Reference
References
-
github.com
/assertj/assertj/commit/85ca7eb6609bb179c043b85ae7d290523b1ba79a
web, patch
-
github.com
/assertj/assertj/security/advisories/GHSA-rqfh-9r24-8c9r
web, mitigation, vendor-advisory
-
cheatsheetseries.owasp.org
/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html
web, technical-description
-
github.com
/assertj/assertj/releases/tag/assertj-build-3.27.7
web, product, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2026-24400
advisory
-
github.com
/assertj/assertj
package
Sources
- CVE List CVE-2026-24400
- GitHub Advisory GHSA-rqfh-9r24-8c9r
- NVD CVE-2026-24400
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.