Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious IG with XSS payload
-
DeliveryDistribute IG to target developer or registry
-
ExploitVictim runs HAPI FHIR scan command
-
ExecutionScanner.java embeds unescaped payload in scan.html
-
PersistVictim opens HTML report in browser
-
ImpactJavaScript 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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 Org Hl7 Fhir Core
View allDenial of service in HAPI FHIR core (org.hl7.fhir.core) before 6.9.12: remote attackers who can reach an endpoint that p
Unbounded DEFLATE decompression in HAPI FHIR's SHCParser (org.hl7.fhir.core prior to 6.9.12) allows an unauthenticated r
EUVD-2026-54614
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB