Description
HAPI FHIR is a complete implementation of the HL7 FHIR standard for healthcare interoperability in Java. Prior to 6.9.11, the hidden scan command concatenates attacker-controlled Implementation Guide titles, profile titles, and source references into scan.html without escaping in Scanner.java. As a result, a user who scans an attacker-supplied IG/profile and then opens or publishes the generated local/CI HTML report can trigger stored cross-site scripting, executing attacker-controlled JavaScript in the report's browser context. This issue is fixed in version 6.9.11.
Published: 2026-08-07
Score: 5 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The scanner component of HAPI FHIR concatenates titles, profile titles and source references supplied by an attacker into a generated scan.html file without applying any escaping. When a malicious Implementation Guide or profile is scanned, the resulting report contains unescaped JavaScript that can execute in any browser that opens or publishes the file. This stored cross‑site scripting can lead to theft of session tokens, credential leakage or unauthorized actions performed on behalf of the report viewer.

Affected Systems

The flaw affects the HAPI FHIR implementation, specifically the org.hl7.fhir.validation module, its command‑line interface org.hl7.fhir.validation.cli and the core library org.hl7.fhir.core. All versions before 6.9.11 are vulnerable; the issue is resolved in 6.9.11 and later.

Risk and Exploitability

The CVSS base score of 5 indicates a moderate severity. The EPSS score is unavailable, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires an attacker to supply a crafted Implementation Guide or profile to a user who subsequently opens the scan report, typically in a local or CI environment. The attack is confined to the viewer’s browser, but the potential damage is limited to the context of that report reader.

Generated by OpenCVE AI on August 7, 2026 at 20:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade all HAPI FHIR modules (org.hl7.fhir.validation, org.hl7.fhir.validation.cli, org.hl7.fhir.core) to version 6.9.11 or later to apply the escaping fix.
  • Verify that the improved scan reports generated by the upgraded modules contain properly escaped titles and do not embed raw titles or paths.
  • If an upgrade cannot be performed immediately, remove or block any scan.html files created with versions older than 6.9.11 and avoid sharing them with users or CI pipelines until patched.
  • For future scans, enforce validation or sanitization of IG and profile titles before inclusion in report generation, and restrict scanning of untrusted guides.

Generated by OpenCVE AI on August 7, 2026 at 20:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 07 Aug 2026 19:45:00 +0000

Type Values Removed Values Added
Description HAPI FHIR is a complete implementation of the HL7 FHIR standard for healthcare interoperability in Java. Prior to 6.9.11, the hidden scan command concatenates attacker-controlled Implementation Guide titles, profile titles, and source references into scan.html without escaping in Scanner.java. As a result, a user who scans an attacker-supplied IG/profile and then opens or publishes the generated local/CI HTML report can trigger stored cross-site scripting, executing attacker-controlled JavaScript in the report's browser context. This issue is fixed in version 6.9.11.
Title HAPI FHIR: Stored XSS in scan report via unescaped IG and profile titles
Weaknesses CWE-20
CWE-79
References
Metrics cvssV3_1

{'score': 5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-07T19:26:28.073Z

Reserved: 2026-07-13T18:37:08.488Z

Link: CVE-2026-62293

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-07T20:30:17Z

Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')