CVE-2026-62293

HAPI FHIR: Stored XSS in scan report via unescaped IG and profile titles

Published Aug 7, 2026 CVSS 3.1 · 5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
First Time appeared Hapifhir
Hapifhir hl7 Fhir Core
Vendors & Products Hapifhir
Hapifhir hl7 Fhir Core
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

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'}

Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 7, 2026, 9:01 PM
Reserved
Jul 13, 2026, 6:37 PM
Status
Deferred
Published
Aug 7, 2026, 8:16 PM
Modified
Sep 9, 2026, 9:02 PM