Origin Validation Error Affecting ca.uhn.hapi.fhir:org.hl7.fhir.utilities package, versions [6.4.1,6.9.4)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.16% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-CAUHNHAPIFHIR-15855257
  • published31 Mar 2026
  • disclosed30 Mar 2026
  • creditoffset

Introduced: 30 Mar 2026

CVE-2026-34359  (opens in a new tab)
CWE-346  (opens in a new tab)

How to fix?

Upgrade ca.uhn.hapi.fhir:org.hl7.fhir.utilities to version 6.9.4 or higher.

Overview

Affected versions of this package are vulnerable to Origin Validation Error in the ManagedWebAccessUtils.getServer function. An attacker can obtain authentication credentials by leveraging improper URL prefix matching during HTTP redirects, causing sensitive headers such as Bearer tokens, Basic auth credentials, or API keys to be sent to attacker-controlled domains. This can be exploited when the HTTP client follows redirects to URLs that maliciously match the configured server prefix without proper host boundary validation.

Note: A partial fix was implemented in version 6.9.3, with a more complete solution implemented when addressing isLocal in 6.9.4

CVSS Base Scores

version 4.0
version 3.1