External risk intelligence

HAPI FHIR Credentials Leakage Vulnerability

CVE advisorySeverity: CRITICAL (CVSS 9.1)

CVE-2026-34359

HAPI FHIR is commonly deployed as an API or web service for healthcare interoperability. These services are frequently exposed to external networks to facilitate data exchange between disparate healthcare systems, making them reachable via the public internet or cross-organizational networks.

Hapifhir Hl7 Fhir Core

before 6.9.4

Halo Surface Signal: 4 out of 5 — likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

This advisory concerns a critical vulnerability in HAPI FHIR, a Java implementation of the HL7 FHIR standard used for healthcare data interoperability. The issue could allow unauthenticated attackers to intercept sensitive credentials, such as API keys and authentication tokens, intended for legitimate FHIR servers by exploiting a URL matching flaw. This could lead to unauthorized access and compromise of health data exchanged through these systems.

  • Attackers can steal health system credentials.
  • Healthcare data exchange systems are at risk.
  • Confirm relevance and review security configurations.

Attack Path

How an attacker could exploit the issue

An attacker could exploit this vulnerability by sending a specially crafted request to a vulnerable HAPI FHIR server. The server, when processing this request, might incorrectly dispatch authentication credentials to a malicious domain if that domain mimics the beginning of a legitimate server URL. This misdirection allows the attacker to intercept sensitive authentication information.

  • No user interaction or privileges required.
  • Triggered by a malicious request to the server.
  • Leads to sensitive credential theft.

Live Threat

Current exploitation, exposure, and threat context

When supported by the advisory, an attacker could trick the HAPI FHIR service into dispatching authentication credentials like Bearer tokens, Basic auth credentials, or API keys to a malicious domain. This occurs when a configured server URL is narrowly matched by a crafted attacker-controlled domain due to a lack of trailing slash or host boundary checks.

  • Healthcare interoperability credentials at risk.
  • Credentials sent to attacker-controlled domains.
  • Unauthorized access to sensitive data.

Operational Fix

Recommended remediation, mitigation, and detection steps

This vulnerability in HAPI FHIR affects systems handling healthcare interoperability, potentially exposing sensitive authentication credentials. Infrastructure or platform teams managing FHIR servers are likely responsible for remediation. The first practical step is to identify all HAPI FHIR instances, assess their exposure and business criticality, and then engage the accountable owner to plan for applying the patch in version 6.9.4 or later, or to implement compensating controls if immediate patching is not feasible.

  • Identify HAPI FHIR instances and owners.
  • Verify external reachability and business impact.
  • Plan and execute remediation based on risk.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is HAPI FHIR used for?

HAPI FHIR is a Java-based software library that provides a complete implementation of the HL7 FHIR standard. Organizations use it to build systems that allow different healthcare applications to share, exchange, and interpret clinical and administrative health data securely.

How does this CVE-2026-34359 vulnerability work?

This is a CWE-346 (Inclusion of Functionality from Untrusted Control Sphere) weakness. The software incorrectly validates destination URLs when sending authentication credentials. Because the system performs a loose prefix match instead of checking for a specific host boundary, it can be tricked into sending sensitive tokens to an attacker-controlled server that merely starts with the same characters as a trusted URL.

When is this vulnerability triggered?

The flaw is triggered when the HAPI FHIR server is instructed to connect to a server URL that an attacker has spoofed. If the server lacks a trailing slash or host boundary check, it may misinterpret a malicious domain as a trusted one. Requests to legitimate, correctly configured domains that do not share a prefix with a malicious domain do not trigger the bug.

Is my system at risk according to Halo Surface Signal?

Halo Surface Signal identifies this as a likely risk because HAPI FHIR instances are typically deployed as web services meant to exchange data across organizations. Because these services are often reachable via the public internet to facilitate healthcare interoperability, they are frequently exposed to external networks where attackers can reach them.

What should I do to fix this HAPI FHIR issue?

The primary response is to update your HAPI FHIR instances to version 6.9.4 or later, where this URL matching flaw is resolved. You should start by inventorying all systems running the affected library, determining which are accessible via the network, and coordinating with your infrastructure teams to schedule the update.

References