CVE catalog

CVE-2026-24400

assertj-core: CVE-2026-24400

[CVE catalog]

Severity
Medium · CVSS 6.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:L
Published
Source
[NVD] · [CVE record]
EPSS
0.57% · Oct 27, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianassertj-coresid3.26.3-2vulnerable
Debianassertj-coreforky3.26.3-2vulnerable
Debianassertj-coretrixie3.26.3-2vulnerable
Debianassertj-corebookworm3.14.0-2vulnerable
Opensuseassertj-coreleap 16.03.27.7-160000.1.1fixed
Opensuseassertj-coretumbleweed3.27.7-1.1fixed
Suseassertj-corelinux enterprise server 16.03.27.7-160000.1.1fixed
Suseassertj-corelinux enterprise server for sap applications 16.03.27.7-160000.1.1fixed
Opensuseassertj-coreleap 15.63.27.7-150200.5.9.2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianassertj-coresourcesid(unfixed)not yet assignedNot reported[1127938]
Debianassertj-coresourceforky(unfixed)not yet assignedNot reported[1127938]
Debianassertj-coresourcetrixie(unfixed)not yet assignedNot reported[1127938]
Debianassertj-coresourcebookworm(unfixed)not yet assignedNot reported[1127938]
Opensuseassertj-corerpmleap 16.03.27.7-160000.1.1Not reportedOPENSUSE-SU-2026:20298-1Not reported
Opensuseassertj-corerpmtumbleweed3.27.7-1.1Not reportedOPENSUSE-SU-2026:10106-1Not reported
Suseassertj-corerpmlinux enterprise server 16.03.27.7-160000.1.1Not reportedSUSE-SU-2026:20604-1Not reported
Suseassertj-corerpmlinux enterprise server for sap applications 16.03.27.7-160000.1.1Not reportedSUSE-SU-2026:20604-1Not reported
Opensuseassertj-corerpmleap 15.63.27.7-150200.5.9.2Not reportedSUSE-SU-2026:0344-1Not reported

[Debian bug #1127938]

Notes

[trixie] assertj-core: Minor issue [bookworm] assertj-core: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [assertj-core]

    Details (2)
    • 3.14.0-2 · all · bookworm

      Affected

      dsa · assertj-core · debian · bookworm; dsa · assertj-core · debian · 12

    • 3.14.0-2 · all · bookworm

      Affected

      dsa · assertj-core · debian · bookworm; dsa · assertj-core · debian · 12

[Debian 13 (Trixie)]

  • Source package: [assertj-core]

    Details (2)
    • 3.26.3-2 · all · trixie

      Affected

      dsa · assertj-core · debian · 13

    • 3.26.3-2 · all · trixie

      Affected

      dsa · assertj-core · debian · 13

[openSUSE Tumbleweed]

  • Source package: [assertj-core]

    Details (1)
    • 3.27.7-1.5 · noarch · tumbleweed

      Unknown · Fixed: 3.27.7-1.1

      Version impact unknown

      dsa · assertj-core · opensuse · tumbleweed

  • Source package: [assertj-core]

    Details (1)
    • 3.27.7-1.5 · noarch · tumbleweed

      Fixed · Fixed: 3.27.7-1.1

      dsa · assertj-core · opensuse · tumbleweed

Observed:

References