CVE-2026-55847

MEDIUMPre-NVD 6.16.1
EchelonGraph scoreLOW confidence

This medium-severity CVE scores 6.1 under the CNA's CVSS (NVD's own analysis pending). EPSS exploit-prediction score not yet available (the EPSS model rescores nightly; freshly-published CVEs typically appear within 48 hours). GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).

Triggered by: NVD CVSS baseline
Sources: cna:github_m
6.1
EchelonGraph verdictMonitorLow exploitation likelihood right now — keep watching.
  • Lower severity and no public exploit yet
CISA-KEV: Not listedEPSS: CVSS: 6.1Exploit: NoneExposed: 0

No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.

Allure Report: Stored XSS via unescaped ANSI helper in status message/trace rendering

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 sinkallure-generator/src/main/javascript/helpers/ansi.js:10-11:

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

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

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 usageallure-generator/src/main/javascript/blocks/status-details/status-details.hbs:7,10:

{{ansi statusMessage}}
...
{{ansi statusTrace}}

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

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 helperlinky.js (post-fix) correctly escapes before wrapping in SafeString:

const safeText = escapeExpression(text);
return new SafeString(${safeText});

PoC

  • Create a malicious JUnit XML test result file:

<?xml version="1.0" encoding="UTF-8"?>

Stack trace: &lt;img src=x onerror=alert('statusTrace_XSS')&gt;

  • Generate an Allure report:

allure generate /path/to/results-with-malicious-xml -o /tmp/allure-report
  • Open the report and navigate to the failed test case:

allure open /tmp/allure-report
  • When viewing the test's status details, the ` 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:

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.

CVSS v3
6.1
EG Score
6.1(low)
EPSS
KEV
Not listed

Published

June 19, 2026

Last Modified

June 19, 2026

Vendor Advisories for CVE-2026-55847(1)

These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.

Affected Packages

(1 across 1 ecosystem)
Maven(1)
PackageVulnerable rangeFixed inDependents
io.qameta.allure:allure-generator2.0-BETA8 ... 2.9.0 (70 versions)2.39.0

Data Freshness Timeline

(refreshed 7× in last 7d / 19× in last 30d)

Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.

  1. 2026-07-06 11:45 UTCEG score recompute
  2. 2026-07-05 13:52 UTCEG score recompute
  3. 2026-07-04 16:00 UTCEG score recompute
  4. 2026-07-03 18:08 UTCEG score recompute
  5. 2026-07-02 20:14 UTCEG score recompute
  6. 2026-07-01 22:23 UTCEG score recompute
  7. 2026-07-01 00:30 UTCEG score recompute
  8. 2026-06-30 02:39 UTCEG score recompute
  9. 2026-06-29 04:48 UTCEG score recompute
  10. 2026-06-28 06:54 UTCEG score recompute
  11. 2026-06-27 09:04 UTCEG score recompute
  12. 2026-06-26 11:12 UTCEG score recompute
  13. 2026-06-25 08:44 UTCEG score recompute
  14. 2026-06-24 10:52 UTCEG score recompute
  15. 2026-06-23 12:59 UTCEG score recompute
  16. 2026-06-22 15:08 UTCEG score recompute
  17. 2026-06-21 17:15 UTCEG score recompute
  18. 2026-06-20 19:21 UTCEG score recompute
  19. 2026-06-19 21:23 UTCEG score recompute

Frequently asked(4)

What is CVE-2026-55847?
CVE-2026-55847 is a medium vulnerability published on June 19, 2026. Allure Report: Stored XSS via unescaped ANSI helper in status message/trace rendering 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…
When was CVE-2026-55847 disclosed?
CVE-2026-55847 was first published in the National Vulnerability Database on June 19, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
What is the CVSS score of CVE-2026-55847?
CVE-2026-55847 has a CVSS v4.0 base score of 6.1 (CNA self-assessment; NVD's own analysis pending). The EG score is currently aggregating — additional source signals are being incorporated as they become available..
How do I remediate CVE-2026-55847?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2026-55847, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-55847

Explore →

Is Your Infrastructure Affected by CVE-2026-55847?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.