# CVE-2026-55847: Allure: Stored XSS via unescaped ANSI helper in Allure report status message/trace rendering

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2026-06-19T21:15:53.000Z
- Modified: 2026-09-30T17:43:24.057Z
- Also known as: GHSA-gx93-m64w-5m6h
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- allure-framework allure2: < 2.39.0
- io.qameta.allure allure-generator: < 2.39.0
- io.qameta.allure:allure-generator (Maven): before 2.39.0

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/allure-framework/allure2/security/advisories/GHSA-gx93-m64w-5m6h> (web)
- <https://github.com/allure-framework/allure2/pull/3296>
- <https://github.com/allure-framework/allure2/commit/1c5693933f519e64379f1a14eb3c7beeba7bc7cd>
- <https://github.com/allure-framework/allure2/releases/tag/2.39.0>
- <https://github.com/allure-framework/allure2> (package)

## Sources

- CVE List: [CVE-2026-55847](https://www.cve.org/CVERecord?id=CVE-2026-55847), CVE Terms of Use, modified 2026-09-14
- GitHub Advisory Database: [GHSA-gx93-m64w-5m6h](https://github.com/advisories/GHSA-gx93-m64w-5m6h), CC-BY-4.0, modified 2026-06-19
- NVD: [CVE-2026-55847](https://nvd.nist.gov/vuln/detail/CVE-2026-55847), Public domain, modified 2026-09-30

---

Page: https://cve.day/CVE-2026-55847 · Whole record: https://cve.day/CVE-2026-55847.json · Rebuilt by cve.day 2026-11-25T22:59:38.334Z
