HAPI FHIR HTTP authentication leak in redirects
Critical severity
GitHub Reviewed
Published
Mar 17, 2026
in
hapifhir/org.hl7.fhir.core
•
Updated Mar 18, 2026
Package
Affected versions
< 6.9.0
Patched versions
6.9.0
Description
Published to the GitHub Advisory Database
Mar 18, 2026
Reviewed
Mar 18, 2026
Last updated
Mar 18, 2026
Impact
When setting headers in HTTP requests, the internal HTTP client sends headers first to the host in the initial URL but also, if asked to follow redirects and a 30X HTTP response code is returned, to the host mentioned in URL in the Location: response header value.
Sending the same set of headers to subsequent hosts is a problem as this header often contains privacy sensitive information or data that could allow others to impersonate the client's request.
Patches
This issue has been patched in release 6.8.3
Workarounds
None.
References