CVE-2026-55847
ŚrednieCVSS 6.1Prawdopodobieństwo exploitacji (EPSS)
Niskie ryzykoPercentyl 25 - wyżej niż 25% wszystkich znanych CVE
Streszczenie
Allure 2 przed wersją 2.39.0 zawiera podatność XSS w helperze ansi.js, który przekazuje wartości statusMessage i statusTrace kontrolowane przez atakującego przez AnsiToHtml bez escapowania HTML i opakowuje wynik w Handlebars SafeString, wyłączając automatyczne escapowanie w szablonie status-details.hbs. JunitXmlPlugin.java może wypełnić te pola bezpośrednio z spreparowanych wiadomości i śladów JUnit XML, a podobne wejścia istnieją w pluginach TRX, xUnit XML, xctest oraz Allure1 i Allure2. Gdy użytkownik przegląda szczegóły statusu, nieescapowany markup wykonuje dowolny JavaScript w kontekście raportu, co może ujawnić dane raportu i naruszyć sesje powiązane z tym kontekstem. Jest to niekompletna poprawka, ponieważ PR 3271 escapował helpery linków, ale nie uwzględnił helpera ANSI.
Ocena ryzyka
Podatność XSS może prowadzić do kradzieży danych raportu, przejęcia sesji użytkowników przeglądających raporty oraz naruszenia poufności informacji.
Rekomendacja
Zaleca się aktualizację Allure do wersji 2.39.0 lub nowszej, która zawiera poprawkę.
Inne podatności w Allure 2
Oryginalny opis (angielski, źródło NVD)
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.
Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS

