High, CVSS 7.5MavenPublished
Allure Report allows Improper XXE Restriction via DocumentBuilderFactory
CVE-2025-52888 · GHSA-h7qf-qmf3-85qg
- Affected
- Maven io.qameta.allure.plugins:xunit-xml-plugin <= 2.34.0
- Fixed in
- 2.34.1· Vendor fix available
- Issue
- A critical XML External Entity (XXE) vulnerability exists in the xunit-xml-plugin used by Allure 2. The plugin fails to securely configure the XML parser (DocumentBuilderFactory) and allows external entity expansion when processing test result .xml files. This allows attackers to read arbitrary files from the file system and potentially trigger server-side request forgery (SSRF). Details In \allure2-main\plugins\xunit-xml-plugin\src\main\java\io\qameta\allure\xunitxml\XunitXmlPlugin.java the application uses DocumentBuilderFactory without disabling DTDs or external entities. By generating a report with a malicious xml file within it, an attacker can perform XXE to leverage SSRF, or to read system files. PoC To recreate this vulnerability, you need to install allure for command-line (In my POC I used a Windows 11 Machine). 1. Create a folder called allure, and within it, create a malicious XML file. I will attach my SSRF and file reading payloads, however, for the rest of the…
Recommended action: Upgrade to 2.34.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.