Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.assertj/assertj-core
  4. ›
  5. CVE-2026-24400

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

January 26, 2026 (updated January 29, 2026)

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 one of the following methods:

  • isXmlEqualTo(CharSequence) from org.assertj.core.api.AbstractCharSequenceAssert
  • xmlPrettyFormat(String) from org.assertj.core.util.xml.XmlStringPrettyFormatter

References

  • cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html
  • github.com/advisories/GHSA-rqfh-9r24-8c9r
  • github.com/assertj/assertj
  • github.com/assertj/assertj/commit/85ca7eb6609bb179c043b85ae7d290523b1ba79a
  • github.com/assertj/assertj/releases/tag/assertj-build-3.27.7
  • github.com/assertj/assertj/security/advisories/GHSA-rqfh-9r24-8c9r
  • nvd.nist.gov/vuln/detail/CVE-2026-24400

Code Behaviors & Features

Detect and mitigate CVE-2026-24400 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.4.0 before 3.27.7

Fixed versions

  • 3.27.7

Solution

Upgrade to version 3.27.7 or above.

Impact 7.3 HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-611: Improper Restriction of XML External Entity Reference

Source file

maven/org.assertj/assertj-core/CVE-2026-24400.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 00:35:23 +0000.