The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-24400

CVE-2026-24400: AssertJ XXE Vulnerability

CVE-2026-24400 is an XML External Entity vulnerability in AssertJ that allows attackers to read local files, perform SSRF, or cause DoS. This post explains its impact, affected versions, and mitigation steps.

Published: January 30, 2026

CVE-2026-24400 Overview

An XML External Entity (XXE) vulnerability has been identified in AssertJ, the popular fluent testing assertions library for Java and the Java Virtual Machine (JVM). The vulnerability exists in the org.assertj.core.util.xml.XmlStringPrettyFormatter class, where the toXmlDocument(String) method initializes DocumentBuilderFactory with default settings without disabling DTDs or external entities.

Critical Impact

Attackers exploiting this XXE vulnerability can read arbitrary local files via file:// URIs (e.g., /etc/passwd, application configuration files), perform Server-Side Request Forgery (SSRF) via HTTP/HTTPS URIs, and cause Denial of Service via "Billion Laughs" entity expansion attacks.

Affected Products

  • AssertJ versions 1.4.0 through 3.27.6
  • Applications using isXmlEqualTo(CharSequence) from org.assertj.core.api.AbstractCharSequenceAssert with untrusted input
  • Applications using xmlPrettyFormat(String) from org.assertj.core.util.xml.XmlStringPrettyFormatter with untrusted input

Discovery Timeline

  • 2026-01-26 - CVE CVE-2026-24400 published to NVD
  • 2026-01-27 - Last updated in NVD database

Technical Details for CVE-2026-24400

Vulnerability Analysis

This vulnerability is classified as CWE-611 (Improper Restriction of XML External Entity Reference). The core issue stems from insecure XML parsing configuration in the XmlStringPrettyFormatter utility class. When applications use the affected methods (isXmlEqualTo(CharSequence) or xmlPrettyFormat(String)) with untrusted XML input, the underlying XML parser processes external entity declarations without restriction.

The attack surface requires local access to the application processing XML data. An application is only vulnerable when it processes untrusted XML input through these specific AssertJ methods. While AssertJ is primarily a testing framework, the vulnerability can be exploited if test code processes external or user-supplied XML data during test execution, or if the XmlStringPrettyFormatter utility is inadvertently used in production code.

Root Cause

The vulnerability originates from the toXmlDocument(String) method in XmlStringPrettyFormatter, which creates a DocumentBuilderFactory instance with default settings. The default configuration does not disable:

  • External DTD loading
  • External entity processing
  • Parameter entity expansion

This insecure default behavior allows malicious XML documents containing external entity references to be processed, enabling attackers to exfiltrate sensitive data or cause resource exhaustion.

Attack Vector

An attacker can craft malicious XML payloads containing external entity declarations. When this payload is passed to isXmlEqualTo(CharSequence) or xmlPrettyFormat(String), the XML parser resolves the external entities, leading to:

  1. Local File Disclosure: Using file:// protocol handlers to read system files
  2. SSRF: Using http:// or https:// protocol handlers to make arbitrary network requests
  3. Denial of Service: Using recursive entity expansion ("Billion Laughs" attack) to exhaust memory
java
  * Very much inspired by http://stackoverflow.com/questions/139076/how-to-pretty-print-xml-from-java and
  * http://pastebin.com/XL7932aC
  * </p>
+ * @deprecated this is an internal utility for
+ * {@link org.assertj.core.api.AbstractCharSequenceAssert#isXmlEqualTo(CharSequence) isXmlEqualTo(CharSequence)}
+ * rather than a feature for AssertJ users, therefore its usage is discouraged and
+ * no replacement is provided.
  */
+@Deprecated
 public class XmlStringPrettyFormatter {
 
   private static final String FORMAT_ERROR = "Unable to format XML string";

Source: GitHub Commit 85ca7eb

Detection Methods for CVE-2026-24400

Indicators of Compromise

  • Unexpected file access attempts from Java processes, particularly targeting sensitive files like /etc/passwd or application configuration files
  • Outbound HTTP/HTTPS requests originating from test execution environments to unknown external hosts
  • Memory exhaustion or CPU spikes during XML processing operations in test suites
  • Stack traces showing XmlStringPrettyFormatter or DocumentBuilderFactory with external entity resolution errors

Detection Strategies

  • Scan project dependencies for AssertJ versions between 1.4.0 and 3.27.6 using software composition analysis (SCA) tools
  • Search codebase for usages of isXmlEqualTo() and XmlStringPrettyFormatter.xmlPrettyFormat() methods
  • Monitor test execution logs for unusual file system access patterns or network activity
  • Implement static analysis rules to flag XML parsing without secure configuration

Monitoring Recommendations

  • Enable detailed logging for XML parsing operations in test environments
  • Monitor network egress from CI/CD systems for unexpected outbound connections during test execution
  • Configure file integrity monitoring on sensitive system files that may be targeted by XXE attacks
  • Implement alerting for abnormal memory consumption during test suite execution

How to Mitigate CVE-2026-24400

Immediate Actions Required

  • Upgrade AssertJ to version 3.27.7 or later immediately
  • Audit codebase for usage of isXmlEqualTo(CharSequence) and XmlStringPrettyFormatter with untrusted input
  • Replace isXmlEqualTo(CharSequence) with XMLUnit for XML comparison assertions (recommended approach)
  • Ensure no untrusted XML data is processed through affected AssertJ methods until patching is complete

Patch Information

The AssertJ maintainers have addressed this vulnerability in version 3.27.7. The fix deprecates the vulnerable XmlStringPrettyFormatter class entirely, with complete removal planned for version 4.0. The isXmlEqualTo(CharSequence) method was previously deprecated in version 3.18.0 in favor of XMLUnit and will also be removed in version 4.0.

For detailed patch information, refer to:

  • GitHub Release 3.27.7
  • GitHub Security Advisory GHSA-rqfh-9r24-8c9r

Workarounds

  • Migrate to XMLUnit for XML assertion capabilities, which is the recommended long-term solution
  • Avoid using isXmlEqualTo(CharSequence) or XmlStringPrettyFormatter with any untrusted input
  • Implement input validation to sanitize XML before processing if immediate upgrade is not possible
  • Follow the OWASP XML Entity Prevention Cheat Sheet guidelines for secure XML processing
bash
# Upgrade AssertJ to patched version using Maven
mvn versions:use-dep-version -Dincludes=org.assertj:assertj-core -DdepVersion=3.27.7

# Or update pom.xml dependency directly
# <dependency>
#     <groupId>org.assertj</groupId>
#     <artifactId>assertj-core</artifactId>
#     <version>3.27.7</version>
#     <scope>test</scope>
# </dependency>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXXE

  • Vendor/TechAssertj

  • SeverityHIGH

  • CVSS Score8.2

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • 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
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-611
  • Technical References
  • OWASP XML Entity Prevention Cheat Sheet

  • GitHub Commit 85ca7eb

  • GitHub Release 3.27.7

  • GitHub Security Advisory GHSA-rqfh-9r24-8c9r
  • Latest CVEs
  • CVE-2025-9185: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9184: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9180: Mozilla Firefox Auth Bypass Vulnerability

  • CVE-2025-8030: Mozilla Firefox RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English