# CVE-2026-34359: HAPI FHIR: Authentication Credential Leakage via Improper URL Prefix Matching on HTTP Redirect in HAPI FHIR Core

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-30T17:19:21.000Z
- Modified: 2026-07-24T20:10:00.147Z
- Also known as: GHSA-fgv2-4q4g-wc35
- Weaknesses: CWE-346
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- hapifhir org.hl7.fhir.core: < 6.9.4
- ca.uhn.hapi.fhir:org.hl7.fhir.core (Maven): before 6.9.4
- ca.uhn.hapi.fhir:org.hl7.fhir.utilities (Maven): before 6.9.4
- hapifhir hl7_fhir_core: before 6.9.4

## Every score

- GitHub_M: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-fgv2-4q4g-wc35> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34359> (advisory)
- <https://github.com/hapifhir/org.hl7.fhir.core> (package)

## Sources

- CVE List: [CVE-2026-34359](https://www.cve.org/CVERecord?id=CVE-2026-34359), CVE Terms of Use, modified 2026-03-31
- GitHub Advisory Database: [GHSA-fgv2-4q4g-wc35](https://github.com/advisories/GHSA-fgv2-4q4g-wc35), CC-BY-4.0, modified 2026-03-31
- NVD: [CVE-2026-34359](https://nvd.nist.gov/vuln/detail/CVE-2026-34359), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-34359 · Whole record: https://cve.day/CVE-2026-34359.json · Rebuilt by cve.day 2026-11-25T22:59:17.604Z
