Skip to main content
← All vulnerabilities
CVE-2026-34359GHSA-FGV2-4Q4G-WC35

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.9.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • hapifhir org.hl7.fhir.core

    fixed in 6.9.4

  • ca.uhn.hapi.fhir:org.hl7.fhir.coreMaven

    fixed in 6.9.4

  • ca.uhn.hapi.fhir:org.hl7.fhir.utilitiesMaven

    fixed in 6.9.4

References 1

GitHub · hapifhir/org.hl7.fhir.core