Skip to content
OpenAdvisories
High · 7.4 CVE-2026-34359 EUVD-2026-17524GHSA-fgv2-4q4g-wc35

HAPI FHIR: Authentication Credential Leakage via Improper URL Prefix Matching on HTTP Redirect in HAPI FHIR Core

Published Mar 31, 2026 · Updated Mar 31, 2026 · Assigned by GitHub_M

Description

HAPI FHIR is a complete implementation of the HL7 FHIR standard for healthcare interoperability in Java. Prior to version 6.9.4, ManagedWebAccessUtils.getServer() uses String.startsWith() to match request URLs against configured server URLs for authentication credential dispatch. Because configured server URLs (e.g., http://tx.fhir.org) lack a trailing slash or host boundary check, an attacker-controlled domain like http://tx.fhir.org.attacker.com matches the prefix and receives Bearer tokens, Basic auth credentials, or API keys when the HTTP client follows a redirect to that domain. This issue has been patched in version 6.9.4.

Affected products

VendorProductAffectedFixed
hapifhir org.hl7.fhir.core < 6.9.4 —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven ca.uhn.hapi.fhir:org.hl7.fhir.core < 6.9.4 6.9.4 GHSA-fgv2-4q4g-wc35
Maven ca.uhn.hapi.fhir:org.hl7.fhir.utilities < 6.9.4 6.9.4 GHSA-fgv2-4q4g-wc35

References