HAPI FHIR Auth Token Theft (CVE-2026-34361)
CVE-2026-34361
Patch now: CVE-2026-34361 in HAPI FHIR prior to 6.9.4 lets hackers steal authentication tokens via a Server-Side Request Forgery flaw. Update to 6.9.4 immediately.
Patch now - CVE-2026-34361 is a critical SSRF and credential theft vulnerability in HAPI FHIR library prior to 6.9.4 that lets an unauthenticated attacker trick the Validator’s /loadIG endpoint into leaking stored Bearer tokens, API keys, or Basic auth credentials to an attacker-controlled server.
Overview
A critical vulnerability, CVE-2026-34361, exists in the HAPI FHIR open-source library prior to version 6.9.4. HAPI FHIR is widely used to build healthcare data interoperability systems. The flaw combines an insecure endpoint with a logic error, enabling attackers to steal sensitive authentication credentials.
Vulnerability Details
The HAPI FHIR Validator component includes an HTTP service with an unauthenticated /loadIG endpoint. This endpoint can be forced to make outbound HTTP requests to a URL specified by an attacker. Separately, a flaw exists in how the system matches URLs for credential lookup: it uses a startsWith() function to find which set of stored credentials (like Bearer tokens, API keys, or Basic auth) to use for an outgoing request.
By registering a malicious domain whose URL begins with (prefix-matches) the address of a legitimate, configured FHIR server, an attacker can trick the vulnerable system. When the /loadIG endpoint fetches the attacker’s URL, it will incorrectly attach the legitimate server’s authentication tokens to that malicious request. The attacker then captures these tokens.
Impact
The impact is severe. Successfully exploited, this vulnerability allows an unauthenticated remote attacker to steal credentials that provide access to backend FHIR servers. These servers contain Protected Health Information (PHI) and other sensitive medical data. With stolen tokens, an attacker could read, modify, or exfiltrate patient records, leading to a massive data breach. The attack requires no user interaction and no privileges.
Remediation and Mitigation
The primary and mandatory action is to upgrade HAPI FHIR to version 6.9.4 or later immediately. This version contains the patch that addresses both issues.
If immediate upgrade is impossible, you must disable or block external network access to the FHIR Validator HTTP service in your deployment. Restrict access to this service only to trusted internal networks and ensure it is never exposed to the internet. Review all configured server credentials in your system as a precaution, as they may have been compromised. For the latest on major incidents, you can review recent breach reports.
Security Insight
This vulnerability highlights the persistent danger of “server-side request” capabilities in trusted systems, reminiscent of past SSRF flaws in cloud metadata services. The compounding of an open endpoint with a simple string-matching logic error underscores how minor implementation flaws in supporting utilities can create critical pathways to core authentication secrets. It serves as a reminder that security assessments must include ancillary services and utilities, not just primary application endpoints.
Further Reading
Never miss a critical vulnerability
Get real-time security alerts delivered to your preferred platform.
Am I Affected by CVE-2026-34361?
Pick an ecosystem, paste your installed version, and we'll compare it against the fixed version published on OSV.dev. Browser-only — nothing is sent to a server.
Heuristic comparison only. Always cross-check against the vendor advisory before making patching decisions.
Related Advisories
Vulnerability in the PeopleSoft Enterprise PeopleTools product of Oracle PeopleSoft (component: Updates Environment Management). Supported versions that are affected are 8.61 and 8.62. Easily exploita...
An OS Command Injection vulnerability in Ivanti Sentry before the R10.5.2, R10.6.2 and R10.7.1 versions allows a remote unauthenticated user to achieve root-level remote code execution...
A improper neutralization of special elements used in an os command ('os command injection') vulnerability in Fortinet FortiSandbox 5.0.0 through 5.0.5, FortiSandbox 4.4.0 through 4.4.8, FortiSandbox ...
A logic flow weakness in Remote Access and Mobile Access certificate validation in deprecated IKEv1 key exchange allows an unauthenticated remote attacker to bypass user authentication and establish a...