CVE-2026-55847
Beschrijving NL
Allure 2 is de versie 2.x-tak van Allure Report, een meertalige testrapportagetool. Voorafgaand aan 2.39.0 geeft de ansi.js helper bij allure-generator/src/main/javascript/helpers/ansi.js de door de aanvaller beïnvloede statusMessage and statusTrace values through AnsiToHtml without HTML escaping and wraps the result in Handlebars SafeString, waarbij de sjabloon automatisch wordt uitgeschakeld in allure-generator/src/main/javascript/blocks/status-details/status-details.hbs. JunitXmlPlugin.java kan deze velden rechtstreeks invullen vanuit vervaardigde JUnit XML-foutmeldingen en -traces, en er bestaan gelijkwaardige invoerstromen in de TRX-, xUnit XML-, xctest- en Allure1- en Allure2-plug-ins. Wanneer een gebruiker de betreffende statusdetails bekijkt, voert een niet-ontvluchtte markering willekeurig JavaScript uit in de rapportoorsprong, wat rapportgegevens kan blootleggen en sessies kan compromitteren die aan die oorsprong zijn gekoppeld. Dit is een onvolledig geval omdat PR 3271 ontsnapte aan linkhelpers maar de ANSI-helper niet heeft aangesproken. Dit probleem is opgelost in versie 2.39.0.
Origineel (Engels) tonen
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.