{"id":"CVE-2025-52888","aliases":["CVE-2025-52888","GHSA-h7qf-qmf3-85qg"],"related":[],"kind":"vulnerability","state":"published","title":"Allure 2's xunit-xml-plugin Vulnerable to Improper XXE Restriction","summary":"Allure 2 is the version 2.x branch of Allure Report, a multi-language test reporting tool. A critical XML External Entity (XXE) vulnerability exists in the xunit-xml-plugin used by Allure 2 prior to version 2.34.1. 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). Version 2.34.1 contains a patch for the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Allure 2 is the version 2.x branch of Allure Report, a multi-language test reporting tool. A critical XML External Entity (XXE) vulnerability exists in the xunit-xml-plugin used by Allure 2 prior to version 2.34.1. 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). Version 2.34.1 contains a patch for the issue.","source":"cvelist"},{"lang":"en","text":"### Summary\nA 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).\n\n### Details\nIn `\\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.\n\n### PoC\nTo recreate this vulnerability, you need to install allure for command-line (In my POC I used a Windows 11 Machine). \n\n1. 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 POC, I will focus on reading system files for better screenshots.\n##SSRF (replace webhook link with your own)\n![image](https://github.com/user-attachments/assets/a1a9a438-b6f1-4675-973f-a43847a84519)\n\n##Reading System Files\n![image](https://github.com/user-attachments/assets/eb0e1e60-1f76-42e7-b68d-2137bed62fe9)\n\n2. Put the malicious .xml file into the `allure` directory created previously\n3. Run the following command to run the report `allure generate C:\\path\\to\\directory\\allure -o report --clean`\n4. To view and confirm the executed payload, run `allure open report`\n5. When the report opens, confirm the payload executedby going to `Categories > Product defects > <payload response>`\n![image](https://github.com/user-attachments/assets/e7244550-2e9f-4066-b282-86f1eb8cf5e4)\n\n\n\n### Impact\nThe explained XXE vulnerability can lead to Arbitrary File Disclosure and Server-Side Request Forgery. This exploitation can also be carried out silently, meaning it can be carried out without user interaction if the tool is automated within an application, and can go undetected with a carefully crafted payload. This could allow a malicious actor to view other source codes which may contain API or product keys, internal application URLs, or other secret items. This makes it an especially high risk when ran within a CI/CD platform.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Allure 2 es la versión 2.x de Allure Report, una herramienta multilingüe para la generación de informes de pruebas. Existe una vulnerabilidad crítica de Entidad Externa XML (XXE) en el complemento xunit-xml utilizado por Allure 2 en versiones anteriores a la 2.34.1. El complemento no configura de forma segura el analizador XML (`DocumentBuilderFactory`) y permite la expansión de entidades externas al procesar archivos .xml de resultados de pruebas. Esto permite a los atacantes leer archivos arbitrarios del sistema de archivos y, potencialmente, activar server-side request forgery (SSRF). La versión 2.34.1 incluye un parche para este problema.","source":"nvd"}],"published":"2025-06-24T19:45:22.854Z","modified":"2026-06-17T09:37:13.210Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-611"],"affected":[{"ranges":[{"version":"< 2.34.1","status":"affected"}],"vendor":"allure-framework","product":"allure2","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.34.1"}],"ecosystem":"Maven","package":"io.qameta.allure.plugins:xunit-xml-plugin","purl":"pkg:maven/io.qameta.allure.plugins/xunit-xml-plugin","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.34.1"}],"ecosystem":"Maven","package":"io.qameta.allure.plugins:junit-xml-plugin","purl":"pkg:maven/io.qameta.allure.plugins/junit-xml-plugin","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.34.1"}],"ecosystem":"Maven","package":"io.qameta.allure.plugins:trx-plugin","purl":"pkg:maven/io.qameta.allure.plugins/trx-plugin","source":"ghsa"}],"references":[{"url":"https://github.com/allure-framework/allure2/security/advisories/GHSA-h7qf-qmf3-85qg","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/allure-framework/allure2/commit/cbcb33719851ff70adce85d38e15d20fc58d4eb7","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-52888","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/allure-framework/allure2","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-06-24T19:56:24.747Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-52888","url":"https://www.cve.org/CVERecord?id=CVE-2025-52888","licence":"CVE Terms of Use","modified":"2025-06-24T19:56:50.479Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h7qf-qmf3-85qg","url":"https://github.com/advisories/GHSA-h7qf-qmf3-85qg","licence":"CC-BY-4.0","modified":"2025-06-25T14:57:14.551Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-52888","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-52888","licence":"Public domain","modified":"2026-06-17T09:37:13.210Z"}],"updatedAt":"2026-11-25T22:58:59.580Z","epss":{"score":0.00386,"percentile":0.34763,"date":"2026-12-01T12:00:22.000Z"}}