{"id":"CVE-2026-55847","published":"2026-09-14T17:22:11Z","modified":"2026-09-14T20:06:08Z","title":"Allure: Stored XSS via unescaped ANSI helper in Allure report status message/trace rendering","vendor":"allure-framework","product":"allure2","tier":"tail","description":{"text":"Allure 2 is the version 2.x branch of Allure Report, a multi-language test reporting tool. Prior to 2.39.0, the ansi.js helper at allure-generator/src/main/javascript/helpers/ansi.js passes attacker-influenced statusMessage and statusTrace values through AnsiToHtml without HTML escaping and wraps the result in Handlebars SafeString, disabling template auto-escaping in allure-generator/src/main/javascript/blocks/status-details/status-details.hbs. JunitXmlPlugin.java can populate these fields directly from crafted JUnit XML failure messages and traces, and equivalent input flows exist in the TRX, xUnit XML, xctest, and Allure1 and Allure2 plugins. When a user views the affected status details, unescaped markup executes arbitrary JavaScript in the report origin, which can expose report data and compromise sessions associated with that origin. This is an incomplete-fix case because PR 3271 escaped link helpers but did not address the ANSI helper. This issue is fixed in version 2.39.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00338,"percentile":0.27906,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/allure-framework/allure2/security/advisories/GHSA-gx93-m64w-5m6h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/allure-framework/allure2/pull/3296","tags":["x_refsource_MISC"]},{"url":"https://github.com/allure-framework/allure2/commit/1c5693933f519e64379f1a14eb3c7beeba7bc7cd","tags":["x_refsource_MISC"]},{"url":"https://github.com/allure-framework/allure2/releases/tag/2.39.0","tags":["x_refsource_MISC"]}],"priority":{"score":9.9,"factors":[{"name":"EPSS percentile","points":5.58},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"allure-framework","affectedVersions":[{"vendor":"allure-framework","product":"allure2","versions":["< 2.39.0"]},{"vendor":"io.qameta.allure","product":"allure-generator","versions":["< 2.39.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-14T19:20:49.067025Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"io.qameta.allure:allure-generator","vulnerableRanges":["<2.39.0"],"patched":["2.39.0"],"from":["GHSA-gx93-m64w-5m6h"],"provenance":"source"}],"summary":{"text":"Allure 2's ansi.js helper in the allure-generator component fails to HTML-escape attacker-influenced status message and trace values before rendering them as SafeString, so markup injected through them is not sanitised in the status details view. An attacker can exploit this by supplying crafted failure messages or traces, for example via JUnit XML, which become executable script in the report origin when a user views the affected status details, requiring user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:05:31Z"},"euvd":{"id":"EUVD-2026-77688","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-33166","published":"2026-03-20","fixed":"2.38.0","kev":false,"link":{"from":"CVE-2026-33166","to":"CVE-2026-55847","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:io.qameta.allure:allure-generator","fromFixed":"2.38.0","toFixed":"2.39.0","daysApart":178}]}},{"cve":"CVE-2026-55847","published":"2026-09-14","fixed":"2.39.0","kev":false}],"package":"Maven:io.qameta.allure:allure-generator"}}