Skip to main content

HAPI FHIR CVE-2026-62293

| EUVDEUVD-2026-54614 MEDIUM
Improper Input Validation (CWE-20)
2026-08-07 GitHub_M
5.0
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious IG with XSS payload
  2. Delivery
    Distribute IG to target developer or registry
  3. Exploit
    Victim runs HAPI FHIR scan command
  4. Execution
    Scanner.java embeds unescaped payload in scan.html
  5. Persist
    Victim opens HTML report in browser
  6. Impact
    JavaScript executes in browser context

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

Exploitation requires two sequential conditions: first, the victim must invoke the HAPI FHIR scan command (hidden scan command) against an attacker-controlled Implementation Guide or FHIR profile containing a malicious payload in the IG title, profile title, or source reference field. Second, a user must open the resulting scan.html file in a web browser - either directly from the local filesystem or from a location where it has been published (e.g., CI artifact store, intranet). Exploitation is blocked if: (1) the scan is only run against internally authored, trusted IGs; (2) the generated HTML report is never opened in a browser (e.g., used only programmatically); or (3) the report is served with a strict Content-Security-Policy that blocks inline script execution. The CVSS vector (PR:N) confirms no authentication to the HAPI FHIR system is required of the attacker, but the attacker must be able to influence the content of an IG or profile that the victim scans.

Impact

The official CVSS 3.1 score of 5.0 (AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) appropriately reflects a moderate-severity, two-stage attack. The local attack vector (AV:L) captures that the victim must execute the scan tool in their own environment; the attacker does not need direct access to the victim's system. PR:N is accurate because the attacker's malice is embedded in a publicly or semi-publicly distributed IG or profile artifact - no authenticated access to the HAPI FHIR instance is required. UI:R is the critical limiting factor: exploitation requires a developer or CI system to actively scan the malicious artifact and then open the resulting report in a browser. S:C reflects the browser-context scope change characteristic of stored XSS. No KEV listing and no standalone POC code have been identified - the public GitHub advisory and fix commit are the primary disclosure artifacts, which lowers urgency somewhat. EPSS data was not provided in the intelligence feed; given the niche healthcare tooling context and the required two-step interaction chain, opportunistic mass exploitation is unlikely. The realistic risk is highest in CI/CD pipelines that auto-scan third-party IGs and publish or archive the resulting HTML reports to shared locations.

Exploit ScenarioDerived

An attacker publishes a malicious FHIR Implementation Guide to a public registry or shares it directly with a healthcare developer, embedding a JavaScript payload in the IG title or a profile title field. A developer or automated CI pipeline runs the HAPI FHIR scan command against this IG to validate conformance resources, generating a scan.html report. When the developer opens the report in a browser - or when it is published to a shared CI artifact store and viewed by a team member - the payload executes, potentially stealing browser session tokens or performing actions in the browser context of the report viewer. No standalone public POC exists, but the fix commit makes the injection points obvious.

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

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

Alert me

AnalysisAIv1 – Aug 07, 2026

Stored cross-site scripting in HAPI FHIR's scan command allows an attacker who controls an Implementation Guide or FHIR profile to inject arbitrary JavaScript into generated scan.html reports. All versions of org.hl7.fhir.core, ca.uhn.hapi.fhir:org.hl7.fhir.validation, and ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli prior to 6.9.11 are affected. When a developer or CI pipeline scans the malicious IG and subsequently opens or publishes the resulting HTML report, the injected payload executes in the viewer's browser context - no public exploit or CISA KEV listing exists at time of analysis, but the fix commit and advisory are public.

RemediationAI

Vendor-released patch: version 6.9.11. Upgrade org.hl7.fhir.core, ca.uhn.hapi.fhir:org.hl7.fhir.validation, and ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli to 6.9.11 or later; the fix is confirmed in commit 3a9befd8845f003095ed75f4b24b9a80630275be (https://github.com/hapifhir/org.hl7.fhir.core/commit/3a9befd8845f003095ed75f4b24b9a80630275be). For teams that cannot upgrade immediately, the most effective compensating control is to restrict the scan command to IGs and profiles sourced exclusively from trusted, internally controlled registries - scanning third-party or community-supplied IGs should be blocked or quarantined until patched. Additionally, generated scan.html reports should not be published to shared web locations (intranet sites, GitHub Pages, CI artifact stores with broad access) until the patch is applied, since XSS only triggers in a browser; keeping reports in local filesystem paths with no web serving eliminates the exposure entirely. The advisory is at https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-6vcw-fq7v-4vhw.

Affected VersionsENISA

ca.uhn.hapi.fhir:org.hl7.fhir.validation < 6.9.11
org.hl7.fhir.core < 6.9.11
ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli < 6.9.11

Affected Packages

euvd ca_uhn_hapi_fhir_org_hl7_fhir_validation fix: 6.9.11
euvd ca_uhn_hapi_fhir_org_hl7_fhir_validation_cli fix: 6.9.11
euvd org_hl7_fhir_core fix: 6.9.11

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in euvd

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

Technical ContextAI · show details

HAPI FHIR (CPE: cpe:2.3:a:hapifhir:org.hl7.fhir.core:*:*:*:*:*:*:*:*) is the dominant open-source Java implementation of HL7 FHIR, widely deployed in healthcare interoperability pipelines. The vulnerable code path is in Scanner.java within the validation module. The genScanOutput and genScanOutputItem methods construct an HTML report (scan.html) by directly string-concatenating IG titles (ig.present()), profile titles (sd.present()), source references (s, sp, si), and the report title - all attacker-controllable via the contents of a supplied IG or profile - without applying any HTML escaping. CWE-20 (Improper Input Validation) identifies the root cause as failure to sanitize user-supplied data before embedding it in an HTML output context. The fix confirmed in commit 3a9befd applies Utilities.escapeXml() uniformly across all seven affected concatenation sites in Scanner.java, covering both attribute values (title= attributes) and element text content.

Know when Org Hl7 Fhir Core 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 (GitHub_M) PRIMARY 5.0 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 5.0 MEDIUM

AV:L because the scan tool runs locally and report is local; PR:N since attacker controls only the IG artifact, not the victim system; UI:R because victim must open the report; S:C for browser-context XSS scope change.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

1
Patch available
Aug 07, 2026 - 20:01 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Medium
dominant Java FHIR implementation in healthcare IT sector
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.1%
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
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

25
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +25
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.

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