Skip to main content

Allure Report CVE-2026-55847

| EUVDEUVD-2026-77688 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-06-19 https://github.com/allure-framework/allure2 GHSA-gx93-m64w-5m6h
6.1
CVSS 3.1 · Vendor: https://github.com/allure-framework/allure2
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Craft JUnit XML with HTML/JS payload in failure message
  2. Delivery
    Submit via PR or supply to CI test result directory
  3. Exploit
    CI pipeline runs allure generate on tainted results
  4. Install
    Payload stored verbatim in rendered report HTML
  5. C2
    Victim developer opens report in browser
  6. Execute
    onerror/script handler executes in victim's authenticated session
  7. Impact
    Session cookies or report content exfiltrated

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The attacker must be able to influence the content of test result files consumed by Allure's report generator - specifically the message XML attribute of <failure> or <error> elements in JUnit XML (read by JunitXmlPlugin.java lines 307-308 without sanitization), or equivalent fields in TRX, xUnit XML, xctest, or Allure 1/2 result formats. In CI/CD environments, this condition is met by any contributor who can submit a pull request that triggers test result processing, or any process that produces test output consumed by a shared pipeline. Exploitation further requires a human victim to open the generated Allure report in a browser and navigate to the status details page of the affected test case (UI:R). Exploitation is limited by: (1) the need for victim interaction with the report UI - the payload does not execute on report generation, only on viewing; (2) cookie theft impact is bounded to the domain serving the report - if hosted on an isolated origin with no active sessions, credential theft is not possible; (3) the attacker must control test result content, which is not possible in pipelines that only process results from trusted, controlled test environments.

Impact

The CVSS 3.1 base score of 6.1 (Medium) is grounded in a vector of AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N. The network attack vector and low complexity are accurate - supplying a crafted test file is the only technical hurdle. The required user interaction (UI:R, a victim must open the report) is the primary limiting factor suppressing the score. However, in practice this interaction barrier is low: Allure reports are routinely opened by developers and QA engineers reviewing CI results, making mass-exploitation within a team realistic once a malicious report is generated. The stored nature of the XSS means the payload persists until the report is regenerated, multiplying exposure. The scope change (S:C) correctly reflects that the exploited component (report generator) affects a distinct security context (victim browsers). No CISA KEV listing exists at time of analysis, and EPSS data was not provided in the input. However, a detailed working PoC is publicly documented in the GitHub advisory, significantly raising real-world exploitation likelihood compared to a theoretical-only vulnerability. The CI/CD attack vector (malicious PR contributor injecting payloads into test output processed by a shared pipeline) is a practical and realistic threat model for open-source projects. Risk should be treated as higher than the raw CVSS score implies for teams that process test results from untrusted sources.

Exploit ScenarioDerived

A threat actor submits a pull request to an open-source project with a JUnit XML test result file containing <img src=x onerror=alert(document.cookie)> embedded in the message attribute of a <failure> element. The project's CI pipeline runs allure generate on the results and publishes the report to a shared Jenkins or GitLab dashboard. When a maintainer or reviewer opens the report and navigates to the failing test case's status details tab, the injected onerror handler fires, exfiltrating the maintainer's session cookies to an attacker-controlled server. A working PoC demonstrating this exact flow is publicly documented in the GitHub advisory GHSA-gx93-m64w-5m6h.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 19, 2026

Stored XSS in allure-generator (versions <= 2.38.1) allows arbitrary JavaScript execution in the browser of anyone who views a generated Allure report containing crafted test result data. The vulnerable ansi.js Handlebars helper passes unsanitized statusMessage and statusTrace values - sourced from JUnit XML failure messages and equivalent fields in TRX, xUnit XML, xctest, and Allure 1/2 plugins - through ansi-to-html without HTML escaping, then wraps the output in SafeString to bypass Handlebars' auto-escape protection. A publicly available proof-of-concept demonstrates exploitation via a crafted JUnit XML file; the attack is particularly relevant to CI/CD environments (Jenkins, GitLab, GitHub Actions) where reports are served on shared infrastructure with active authenticated sessions.

RemediationAI

Upgrade io.qameta.allure:allure-generator to version 2.39.0, which resolves the vulnerability by initializing AnsiToHtml with escapeForHtml: true in ansi.js. This configuration causes the library to escape HTML special characters in non-ANSI input while still correctly converting ANSI escape sequences to HTML color spans, preserving colored terminal output in reports. The advisory is available at https://github.com/allure-framework/allure2/security/advisories/GHSA-gx93-m64w-5m6h. If an immediate upgrade is not feasible, the most effective compensating control is to restrict which test result files the Allure generator processes: do not run allure generate against results produced by untrusted contributors or external pull requests in pipelines that serve shared Allure dashboards. Additionally, hosting Allure reports in an isolated browser origin (a dedicated subdomain or storage bucket domain with no active authentication sessions and no cross-origin cookie scope) eliminates the session-hijacking and cookie-theft impact vectors, limiting exploitable impact to report content exfiltration rather than broader account compromise. Note that neither workaround fixes the underlying flaw and both impose operational constraints on standard CI workflows.

Affected VersionsENISA

allure-generator < 2.39.0
allure2 < 2.39.0

Affected Packages

maven io.qameta.allure:allure-generator fix: 2.39.0
euvd allure2 fix: 2.39.0
euvd allure_generator fix: 2.39.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected Maven package is io.qameta.allure:allure-generator (CPE: pkg:maven/io.qameta.allure:allure-generator). The vulnerability resides in allure-generator/src/main/javascript/helpers/ansi.js, a Handlebars helper that converts ANSI terminal escape sequences to HTML using the ansi-to-html library (v0.7.2). The AnsiToHtml instance is constructed without escapeForHtml: true, which defaults to false in that library version, meaning HTML special characters embedded in the input pass through the converter unchanged. The converted output is then passed to Handlebars' SafeString constructor, which explicitly instructs the framework to skip its default output encoding and treat the value as trusted HTML - the canonical anti-pattern for CWE-79 (Improper Neutralization of Input During Web Page Generation). The tainted data originates from XML attribute reads in JunitXmlPlugin.java (lines 307-308) with no sanitization. This is an incomplete fix: commit 4c64b19 (PR #3271) applied escapeExpression() correctly in sibling helpers linky.js and text-with-links.js but failed to apply the same fix to ansi.js, leaving the XSS sink open.

Know when Java gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/allure-framework/allure2) PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 6.1 MEDIUM

Attacker needs no Allure system privileges (PR:N), only test file influence; victim must open report (UI:R); scope change applies as browser context is affected; no availability impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (https://github.com/allure-framework/allure2).

CVSS VectorVendor: https://github.com/allure-framework/allure2

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

Summary

The ansi.js Handlebars helper in allure-generator passes user-controlled statusMessage and statusTrace values from test result files through the ansi-to-html library and wraps the output in Handlebars SafeString without HTML escaping. Since ansi-to-html does not escape HTML entities by default, an attacker who can influence test result content (e.g., via crafted JUnit XML failure messages) can inject arbitrary JavaScript that executes when anyone views the generated Allure report.

Details

The vulnerability is an incomplete fix - commit 4c64b19 (PR #3271) fixed XSS in linky.js and text-with-links.js by adding escapeExpression(), but the same pattern in ansi.js was not addressed.

Vulnerable sink - allure-generator/src/main/javascript/helpers/ansi.js:10-11:

javascript
export default function (input) {
    return new SafeString(ansiConverter.toHtml(input));
};

The AnsiToHtml constructor at line 4 does not set escapeForHtml: true:

javascript
const ansiConverter = new AnsiToHtml({
    fg: "black",
    bg: "black",
    newline: true,
});

The ansi-to-html library (v0.7.2) defaults escapeForHtml to false, meaning HTML entities in the input pass through unchanged. Wrapping the result in SafeString tells Handlebars to skip its auto-escaping, so the raw HTML reaches the browser.

Template usage - allure-generator/src/main/javascript/blocks/status-details/status-details.hbs:7,10:

handlebars
<pre class="status-details__message"><code>{{ansi statusMessage}}</code></pre>
...
<pre class="{{b 'status-details' 'trace'}}"><code>{{ansi statusTrace}}</code></pre>

Source - plugins/junit-xml-plugin/src/main/java/io/qameta/allure/junitxml/JunitXmlPlugin.java:307-308:

java
result.setStatusMessage(element.getAttribute(MESSAGE_ATTRIBUTE_NAME));
result.setStatusTrace(element.getValue());

These values are read directly from XML attributes with no sanitization. The same pattern exists in TRX, xUnit XML, xctest, and Allure1/2 plugins.

Contrast with the fixed helper - linky.js (post-fix) correctly escapes before wrapping in SafeString:

javascript
const safeText = escapeExpression(text);
return new SafeString(`<a href="${safeText}" ...>${safeText}</a>`);

PoC

  1. Create a malicious JUnit XML test result file:
xml
<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="XSSTest" tests="1" failures="1">
  <testcase name="xssPayload" classname="com.example.Test">
    <failure message="&lt;img src=x onerror=alert(document.cookie)&gt;">
      Stack trace: &lt;img src=x onerror=alert('statusTrace_XSS')&gt;
    </failure>
  </testcase>
</testsuite>
  1. Generate an Allure report:
bash
allure generate /path/to/results-with-malicious-xml -o /tmp/allure-report
  1. Open the report and navigate to the failed test case:
bash
allure open /tmp/allure-report
  1. When viewing the test's status details, the <img onerror> payloads execute JavaScript in the viewer's browser.

Impact

  • Arbitrary JavaScript execution in the browser of anyone viewing the generated Allure report
  • Cookie theft, session hijacking if the report is served from a domain with active sessions (e.g., CI dashboards)
  • Data exfiltration - the injected script can read the full report content and send it to an attacker-controlled server
  • Attack vectors: A malicious dependency that throws crafted exception messages, a CI pipeline processing test results from untrusted pull requests, or a contributor submitting test files containing XSS payloads
  • Allure reports are commonly hosted on CI/CD platforms (Jenkins, GitLab, GitHub Actions artifacts) where session cookies may be present

Recommended Fix

Configure AnsiToHtml with escapeForHtml: true to escape HTML entities while preserving ANSI-to-HTML conversion:

javascript
import AnsiToHtml from "ansi-to-html";
import {SafeString} from "handlebars/runtime";

const ansiConverter = new AnsiToHtml({
    fg: "black",
    bg: "black",
    newline: true,
    escapeForHtml: true,  // Escape HTML entities in non-ANSI input
});

export default function (input) {
    return new SafeString(ansiConverter.toHtml(input));
};

This is the correct approach because it preserves the ANSI escape sequence → HTML conversion (colored output) while ensuring that any non-ANSI HTML in the input is safely escaped. The alternative of using escapeExpression() on the input would destroy ANSI sequences before they could be converted.

Threat Intelligence Overview

EPSS Score
0.2%
Top 84% exploitable
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy