Allure: Stored XSS via unescaped ANSI helper in Allure report status message/trace rendering
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| allure-framework | allure2 | affected |
|
||||||
| io.qameta.allure | allure-generator | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Allure-framework | Allure-generator |
|
||||||||
| Allure-framework | Allure2 |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-gx93-m64w-5m6h | Allure Report: Stored XSS via unescaped ANSI helper in status message/trace rendering |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.338% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Allure-framework
Allure-framework allure-generator Allure-framework allure2 |
|
| Vendors & Products |
Allure-framework
Allure-framework allure-generator Allure-framework allure2 |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Allure: Stored XSS via unescaped ANSI helper in Allure report status message/trace rendering | |
| Weaknesses | CWE-79 | |
| References |
| |
| Metrics |
cvssV3_1
|