ADVISORIES

Vulnerability

CVE-2026-24400

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.

29 advisories report this vulnerability, across 12 ecosystems.

Advisories

  • ALAS2023-2026-1448

    Amazon Linux 2023 - ALAS2023-2026-1448: Medium priority package update for assertj-core

    Medium CVE-2026-24400 Amazon Linux Updated 5 March 2026
  • ALAS2023-2026-1449

    Amazon Linux 2023 - ALAS2023-2026-1449: Medium priority package update for javapackages-bootstrap

    Medium CVE-2026-24400 Amazon Linux Updated 5 March 2026
  • ALSA-2026:59372

    Moderate: assertj-core security update

    CVE-2026-24400 AlmaLinux Updated 29 October 2026
  • ALSA-2026:60215

    Moderate: assertj-core security update

    CVE-2026-24400 AlmaLinux Updated 29 October 2026
  • AZL-75431

    CVE-2026-24400 affecting package javapackages-bootstrap for versions less than 1.14.0-4

    CVE-2026-24400 Azure Linux Updated 23 November 2026
  • CGA-6rqh-f2p3-hjgp
    CVE-2026-24400 Chainguard Updated 5 November 2026
  • CGA-7r89-rm28-mvpq
    CVE-2026-24400 Chainguard Updated 5 November 2026
  • CGA-9fr3-vwv3-fjxq
    CVE-2026-24400 Chainguard Updated 5 November 2026
  • CGA-c39c-4pw4-c2pw
    CVE-2026-24400 Chainguard Updated 5 November 2026
  • CGA-cx6v-pxjp-2mg2
    CVE-2026-24400 Chainguard Updated 5 November 2026
  • CGA-g7vh-pcpw-8589
    CVE-2026-24400 Chainguard Updated 5 November 2026
  • DEBIAN-CVE-2026-24400

    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…

    CVE-2026-24400 Debian Updated 18 November 2026
  • ELSA-2026-59372

    ELSA-2026-59372: assertj-core security update (MODERATE)

    Moderate CVE-2026-24400 Oracle Linux Updated 26 August 2026
  • ELSA-2026-60215-0

    ELSA-2026-60215-0: assertj-core security update (MODERATE)

    Moderate CVE-2026-24400 Oracle Linux Updated 26 August 2026
  • GHSA-rqfh-9r24-8c9r

    AssertJ has XML External Entity (XXE) vulnerability when parsing untrusted XML via isXmlEqualTo assertion

    High CVE-2026-24400 Maven Updated 3 February 2026
  • RHSA-2026:58949

    Red Hat Security Advisory: assertj-core security update

    CVE-2026-24400 Red Hat Updated 13 November 2026
  • RHSA-2026:58956

    Red Hat Security Advisory: assertj-core security update

    CVE-2026-24400 Red Hat Updated 13 November 2026
  • RHSA-2026:58957

    Red Hat Security Advisory: assertj-core security update

    CVE-2026-24400 Red Hat Updated 13 November 2026
  • RHSA-2026:59372

    Red Hat Security Advisory: assertj-core security update

    CVE-2026-24400 Red Hat Updated 13 November 2026
  • RHSA-2026:60215

    Red Hat Security Advisory: assertj-core security update

    CVE-2026-24400 Red Hat Updated 13 November 2026
  • RHSA-2026:69106

    Red Hat Security Advisory: assertj-core security update

    CVE-2026-24400 Red Hat Updated 13 November 2026
  • RHVEX-CVE-2026-24400

    assertj: AssertJ: Information disclosure and denial of service via XML External Entity (XXE)

    Moderate CVE-2026-24400 Red Hat Updated 24 November 2026
  • RLSA-2026:59372

    Moderate: assertj-core security update

    CVE-2026-24400 Rocky Linux Updated 26 August 2026
  • RLSA-2026:60215

    Moderate: assertj-core security update

    CVE-2026-24400 Rocky Linux Updated 27 August 2026
  • SUSE-SU-2026:0344-1

    Security update for assertj-core

    CVE-2026-24400 openSUSE Updated 23 March 2026
  • SUSE-SU-2026:20604-1

    Security update for assertj-core

    CVE-2026-24400 SUSE Updated 23 March 2026
  • UBUNTU-CVE-2026-24400

    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…

    CVE-2026-24400 Ubuntu Updated 17 October 2026
  • openSUSE-SU-2026:10106-1

    assertj-core-3.27.7-1.1 on GA media

    CVE-2026-24400 openSUSE Updated 23 March 2026
  • openSUSE-SU-2026:20298-1

    Security update for assertj-core

    CVE-2026-24400 openSUSE Updated 23 March 2026

References