Junglewise Threat Intelligence

CVE-2026-55847: 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-gen

CVE-2026-55847 · Severity: medium · CVSS 6.1 · Published 2026-09-14

Vendors: Maven.

Executive brief

Allure Report is a tool used to generate visual reports from software test results. A vulnerability allows an attacker to inject malicious scripts into these reports via specially crafted test failure messages. If a user views a compromised report, the script could steal login cookies or sensitive data, especially when reports are hosted on shared corporate CI/CD platforms like Jenkins or GitLab.

Technical details

A stored XSS vulnerability exists in the `ansi.js` Handlebars helper of `allure-generator`. The helper uses the `ansi-to-html` library to process `statusMessage` and `statusTrace` fields from test result files (such as JUnit XML) but does not enable the `escapeForHtml` option. Furthermore, the output is wrapped in a Handlebars `SafeString`, bypassing default template escaping. An attacker can provide malicious input via XML attributes in test results, leading to arbitrary JavaScript execution in the context of the report viewer's browser. This is an incomplete fix for a previous XSS issue that addressed other helpers but missed the ANSI helper. A patch is available in version 2.39.0.

Affected products

  • allure-framework allure-generator <= 2.38.1

Timeline

  • 2026-06-16: disclosed
  • 2026-06-19: advisory: GitHub Advisory published
  • 2026-06-19: patched: Version 2.39.0 released

References

Related threats