Vulnerabilities in pkg:maven/ca.uhn.hapi.fhir/org.hl7.fhir.core

PACKAGE
Advisory Identifier: GHSA-3ww8-jw56-9f5h
Advisory Summary

CVE-2026-34360 is a MODERATE (CVSS 5.8) unauthenticated blind ssrf vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting FHIR Validator libraries in the Maven ecosystem. The issue involves unauthenticated blind ssrf via /loadig endpoint enables internal network probing. Remediation is available by upgrading affected packages to version 6.9.4.

4 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/ca.uhn.hapi.fhir/org.hl7.fhir.core

4 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/ca.uhn.hapi.fhir/org.hl7.fhir.core. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-3ww8-jw56-9f5h CVE-2026-34360 MODERATE FHIR Validator: Unauthenticated Blind SSRF via /loadIG Endpoint Enables Internal Network Probing
GHSA-fgv2-4q4g-wc35 CVE-2026-34359 HIGH HAPI FHIR Core has Authentication Credential Leakage via Improper URL Prefix Matching on HTTP Redirect
GHSA-jqh6-9574-5x22 CVE-2023-24057 CRITICAL MITM based Zip Slip in `ca.uhn.hapi.fhir:org.hl7.fhir.core`
GHSA-9654-pr4f-gh6m CVE-2023-28465 HIGH HL7 FHIR Partial Path Zip Slip due to bypass of CVE-2023-24057

CVE-2026-34360 at a Glance

CVE Identifier CVE-2026-34360
GHSA Identifier GHSA-3ww8-jw56-9f5h
Severity MODERATE
CVSS v3.1 Base Score 5.8
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product FHIR Validator
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-34360

To remediate this vulnerability, upgrade all affected FHIR Validator dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

ca.uhn.hapi.fhir:org.hl7.fhir.core fixed: 6.9.4
<dependency>
    <groupId>ca.uhn.hapi.fhir</groupId>
    <artifactId>org.hl7.fhir.core</artifactId>
    <version>6.9.4</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=ca.uhn.hapi.fhir

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-34360, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=ca.uhn.hapi.fhir

Analyze the terminal output to locate any version of FHIR Validator in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.9.4), your application is affected.

Note: The mvn dependency:tree -Dincludes=ca.uhn.hapi.fhir command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In FHIR Validator, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary The `/loadIG` HTTP endpoint in the FHIR Validator HTTP service accepts a user-supplied URL via JSON body and makes server-side HTTP requests to it without any hostname, scheme, or domain validation. An unauthenticated attacker with network access to the validator can probe internal network services, cloud metadata endpoints, and map network topology through error-based information leakage. With `explore=true` (the default for this code path), each request triggers multiple outbound HTTP calls, amplifying reconnaissance capability. ## Details **Root cause chain:** 1. `LoadIGHTTPHandler.handle()` reads the `ig` field from user-supplied JSON and passes it directly to `IgLoader.loadIg()` with no validation: ```java // LoadIGHTTPHandler.java:35,43 String ig = wrapper.asString("ig"); engine.getIgLoader().loadIg(engine.getIgs(), engine.getBinaries(), ig, false); ``` 2. `loadIg()` calls `loadIgSource(srcPackage, recursive, true)` with `explore=true` (IgLoader.java:153). 3. `loadIgSource()` checks `Common.isNetworkPath(src)` which only verifies the URL starts with `http:` or `https:` β€” no host/IP validation (Common.java:14-16). 4. The URL reaches `ManagedWebAccess.get()` which calls `inAllowedPaths()`. This check is a no-op by default because `allowedDomains` is initialized as an empty list, and the code explicitly returns `true` when empty: ```java // ManagedWebAccess.java:104-106 static boolean inAllowedPaths(String pathname) { if (allowedDomains.isEmpty()) { return true; // DEFAULT: all domains allowed } // ... } ``` The source code has a `//TODO get this from fhir settings` comment (line 82) confirming this is an incomplete security control. 5. `SimpleHTTPClient.get()` makes the HTTP request and follows 301/302/307/308 redirects up to 5 times. Redirect targets are NOT re-validated against `inAllowedPaths()`: ```java // SimpleHTTPClient.java:88-99 case HttpURLConnection.HTTP_MOVED_PERM, HttpURLConnection.HTTP_MOVED_TEMP, 307, 308: String location = connection.getHeaderField("Location"); url = new URL(originalUrl, location); // No domain re-validation continue; ``` 6. The server binds to all interfaces with no authentication (FhirValidatorHttpService.java:31): ```java server = HttpServer.create(new InetSocketAddress(port), 0); ``` 7. Errors propagate back to the attacker with exception details: ```java // LoadIGHTTPHandler.java:49 sendOperationOutcome(exchange, 500, OperationOutcomeUtilities.createError("Failed to load IG: " + e.getMessage()), ...); ``` **Redirect bypass:** Even if `allowedDomains` were configured, the domain check in `ManagedWebAccessor.setupSimpleHTTPClient()` (line 31) only validates the initial URL. An attacker can host a redirect on an allowed domain that points to an internal target. ## PoC 1. Start the FHIR Validator in HTTP server mode: ```bash java -jar validator_cli.jar -server -port 8080 ``` 2. Probe a cloud metadata endpoint: ```bash curl -X POST http://<validator-host>:8080/loadIG \ -H "Content-Type: application/json" \ -d '{"ig": "http://169.254.169.254/latest/meta-data/"}' ``` Expected: The validator makes a GET request to the AWS metadata service from its own network position. The error response reveals whether the endpoint is reachable (e.g., connection refused vs. parse error on HTML content). 3. Port scan an internal host: ```bash # Open port β€” returns quickly with a parse error (content received but not valid FHIR) curl -X POST http://<validator-host>:8080/loadIG \ -H "Content-Type: application/json" \ -d '{"ig": "http://10.0.0.1:8080/"}' # Closed port β€” returns with "Connection refused" curl -X POST http://<validator-host>:8080/loadIG \ -H "Content-Type: application/json" \ -d '{"ig": "http://10.0.0.1:9999/"}' ``` 4. Redirect bypass (if allowedDomains were configured): ```bash # Attacker hosts redirect: http://allowed-domain.com/redir β†’ http://127.0.0.1:8080/admin curl -X POST http://<validator-host>:8080/loadIG \ -H "Content-Type: application/json" \ -d '{"ig": "http://allowed-domain.com/redir"}' ``` The validator follows the redirect to the internal target without re-checking the domain allowlist. ## Impact An unauthenticated attacker with network access to the FHIR Validator HTTP service can: - **Probe internal network services** β€” differentiate open/closed ports and reachable/unreachable hosts via error message analysis (connection refused vs. timeout vs. content parse errors) - **Access cloud metadata endpoints** β€” reach AWS/GCP/Azure instance metadata services (169.254.169.254) from the validator's network position - **Map internal network topology** β€” systematically enumerate internal hosts and services - **Bypass domain restrictions via redirects** β€” even if allowedDomains is configured, redirect following does not re-validate targets - **Amplify reconnaissance** β€” each `/loadIG` call with `explore=true` generates multiple outbound requests (package.tgz, JSON, XML variants) This is a blind SSRF β€” the fetched content is not directly returned. Impact is limited to network probing and error-based information leakage rather than full content exfiltration. ## Recommended Fix 1. **Add URL validation** in `LoadIGHTTPHandler` before passing to `loadIg()` β€” reject private/internal IP ranges and non-standard ports: ```java // LoadIGHTTPHandler.java β€” add before line 43 if (Common.isNetworkPath(ig)) { URL url = new URL(ig); InetAddress addr = InetAddress.getByName(url.getHost()); if (addr.isLoopbackAddress() || addr.isLinkLocalAddress() || addr.isSiteLocalAddress() || addr.isAnyLocalAddress()) { sendOperationOutcome(exchange, 400, OperationOutcomeUtilities.createError("URL targets a private/internal address"), getAcceptHeader(exchange)); return; } } ``` 2. **Re-validate redirect targets** in `SimpleHTTPClient.get()` β€” check `inAllowedPaths()` for each redirect URL: ```java // SimpleHTTPClient.java β€” inside the redirect case (after line 98) url = new URL(originalUrl, location); if (!ManagedWebAccess.inAllowedPaths(url.toString())) { throw new IOException("Redirect target '" + url + "' is not in allowed domains"); } ``` 3. **Configure `allowedDomains` by default** to restrict outbound requests to known FHIR registries (e.g., `packages.fhir.org`, `hl7.org`), or require explicit opt-in for open access. 4. **Add authentication** to the HTTP service, at minimum for state-changing endpoints like `/loadIG`.

CVE-2026-34360 Affected FHIR Validator Versions

1 component(s)
Fixed Versions:
6.9.4
Product / Package Ecosystem Affected Versions Fixed Version
ca.uhn.hapi.fhir:org.hl7.fhir.core
Maven
< 6.9.4
6.9.4

References

Frequently Asked Questions

What is CVE-2026-34360?
CVE-2026-34360 is a security vulnerability in FHIR Validator involving Unauthenticated Blind SSRF via /loadIG Endpoint Enables Internal Network Probing under CWE-918: Server-Side Request Forgery (SSRF).
Which FHIR Validator versions are affected?
Affected versions include releases prior to 6.9.4 across affected packages: ca.uhn.hapi.fhir:org.hl7.fhir.core.
What version fixes CVE-2026-34360?
Upgrading to 6.9.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is org.hl7.fhir.core affected?
Yes, ca.uhn.hapi.fhir:org.hl7.fhir.core is affected in releases prior to 6.9.4. Upgrade your dependency to 6.9.4 or later.
What is the CVSS score of CVE-2026-34360?
CVE-2026-34360 has a CVSS v3.1 base score of 5.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N.
What CWE is associated with CVE-2026-34360?
CVE-2026-34360 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check Maven dependencies for CVE-2026-34360?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=ca.uhn.hapi.fhir'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-3ww8-jw56-9f5h",
  "modified" : "2026-03-31T18:55:39Z",
  "published" : "2026-03-30T17:21:28Z",
  "aliases" : [ "CVE-2026-34360" ],
  "summary" : "FHIR Validator: Unauthenticated Blind SSRF via /loadIG Endpoint Enables Internal Network Probing",
  "details" : "## Summary\n\nThe `/loadIG` HTTP endpoint in the FHIR Validator HTTP service accepts a user-supplied URL via JSON body and makes server-side HTTP requests to it without any hostname, scheme, or domain validation. An unauthenticated attacker with network access to the validator can probe internal network services, cloud metadata endpoints, and map network topology through error-based information leakage. With `explore=true` (the default for this code path), each request triggers multiple outbound HTTP calls, amplifying reconnaissance capability.\n\n## Details\n\n**Root cause chain:**\n\n1. `LoadIGHTTPHandler.handle()` reads the `ig` field from user-supplied JSON and passes it directly to `IgLoader.loadIg()` with no validation:\n\n```java\n// LoadIGHTTPHandler.java:35,43\nString ig = wrapper.asString(\"ig\");\nengine.getIgLoader().loadIg(engine.getIgs(), engine.getBinaries(), ig, false);\n```\n\n2. `loadIg()` calls `loadIgSource(srcPackage, recursive, true)` with `explore=true` (IgLoader.java:153).\n\n3. `loadIgSource()` checks `Common.isNetworkPath(src)` which only verifies the URL starts with `http:` or `https:` β€” no host/IP validation (Common.java:14-16).\n\n4. The URL reaches `ManagedWebAccess.get()` which calls `inAllowedPaths()`. This check is a no-op by default because `allowedDomains` is initialized as an empty list, and the code explicitly returns `true` when empty:\n\n```java\n// ManagedWebAccess.java:104-106\nstatic boolean inAllowedPaths(String pathname) {\n    if (allowedDomains.isEmpty()) {\n        return true;  // DEFAULT: all domains allowed\n    }\n    // ...\n}\n```\n\nThe source code has a `//TODO get this from fhir settings` comment (line 82) confirming this is an incomplete security control.\n\n5. `SimpleHTTPClient.get()` makes the HTTP request and follows 301/302/307/308 redirects up to 5 times. Redirect targets are NOT re-validated against `inAllowedPaths()`:\n\n```java\n// SimpleHTTPClient.java:88-99\ncase HttpURLConnection.HTTP_MOVED_PERM,\n     HttpURLConnection.HTTP_MOVED_TEMP,\n     307, 308:\n    String location = connection.getHeaderField(\"Location\");\n    url = new URL(originalUrl, location);  // No domain re-validation\n    continue;\n```\n\n6. The server binds to all interfaces with no authentication (FhirValidatorHttpService.java:31):\n\n```java\nserver = HttpServer.create(new InetSocketAddress(port), 0);\n```\n\n7. Errors propagate back to the attacker with exception details:\n\n```java\n// LoadIGHTTPHandler.java:49\nsendOperationOutcome(exchange, 500,\n    OperationOutcomeUtilities.createError(\"Failed to load IG: \" + e.getMessage()), ...);\n```\n\n**Redirect bypass:** Even if `allowedDomains` were configured, the domain check in `ManagedWebAccessor.setupSimpleHTTPClient()` (line 31) only validates the initial URL. An attacker can host a redirect on an allowed domain that points to an internal target.\n\n## PoC\n\n1. Start the FHIR Validator in HTTP server mode:\n```bash\njava -jar validator_cli.jar -server -port 8080\n```\n\n2. Probe a cloud metadata endpoint:\n```bash\ncurl -X POST http://<validator-host>:8080/loadIG \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"ig\": \"http://169.254.169.254/latest/meta-data/\"}'\n```\n\nExpected: The validator makes a GET request to the AWS metadata service from its own network position. The error response reveals whether the endpoint is reachable (e.g., connection refused vs. parse error on HTML content).\n\n3. Port scan an internal host:\n```bash\n# Open port β€” returns quickly with a parse error (content received but not valid FHIR)\ncurl -X POST http://<validator-host>:8080/loadIG \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"ig\": \"http://10.0.0.1:8080/\"}'\n\n# Closed port β€” returns with \"Connection refused\"\ncurl -X POST http://<validator-host>:8080/loadIG \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"ig\": \"http://10.0.0.1:9999/\"}'\n```\n\n4. Redirect bypass (if allowedDomains were configured):\n```bash\n# Attacker hosts redirect: http://allowed-domain.com/redir β†’ http://127.0.0.1:8080/admin\ncurl -X POST http://<validator-host>:8080/loadIG \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"ig\": \"http://allowed-domain.com/redir\"}'\n```\n\nThe validator follows the redirect to the internal target without re-checking the domain allowlist.\n\n## Impact\n\nAn unauthenticated attacker with network access to the FHIR Validator HTTP service can:\n\n- **Probe internal network services** β€” differentiate open/closed ports and reachable/unreachable hosts via error message analysis (connection refused vs. timeout vs. content parse errors)\n- **Access cloud metadata endpoints** β€” reach AWS/GCP/Azure instance metadata services (169.254.169.254) from the validator's network position\n- **Map internal network topology** β€” systematically enumerate internal hosts and services\n- **Bypass domain restrictions via redirects** β€” even if allowedDomains is configured, redirect following does not re-validate targets\n- **Amplify reconnaissance** β€” each `/loadIG` call with `explore=true` generates multiple outbound requests (package.tgz, JSON, XML variants)\n\nThis is a blind SSRF β€” the fetched content is not directly returned. Impact is limited to network probing and error-based information leakage rather than full content exfiltration.\n\n## Recommended Fix\n\n1. **Add URL validation** in `LoadIGHTTPHandler` before passing to `loadIg()` β€” reject private/internal IP ranges and non-standard ports:\n\n```java\n// LoadIGHTTPHandler.java β€” add before line 43\nif (Common.isNetworkPath(ig)) {\n    URL url = new URL(ig);\n    InetAddress addr = InetAddress.getByName(url.getHost());\n    if (addr.isLoopbackAddress() || addr.isLinkLocalAddress() ||\n        addr.isSiteLocalAddress() || addr.isAnyLocalAddress()) {\n        sendOperationOutcome(exchange, 400,\n            OperationOutcomeUtilities.createError(\"URL targets a private/internal address\"),\n            getAcceptHeader(exchange));\n        return;\n    }\n}\n```\n\n2. **Re-validate redirect targets** in `SimpleHTTPClient.get()` β€” check `inAllowedPaths()` for each redirect URL:\n\n```java\n// SimpleHTTPClient.java β€” inside the redirect case (after line 98)\nurl = new URL(originalUrl, location);\nif (!ManagedWebAccess.inAllowedPaths(url.toString())) {\n    throw new IOException(\"Redirect target '\" + url + \"' is not in allowed domains\");\n}\n```\n\n3. **Configure `allowedDomains` by default** to restrict outbound requests to known FHIR registries (e.g., `packages.fhir.org`, `hl7.org`), or require explicit opt-in for open access.\n\n4. **Add authentication** to the HTTP service, at minimum for state-changing endpoints like `/loadIG`.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "ca.uhn.hapi.fhir:org.hl7.fhir.core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.9.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-3ww8-jw56-9f5h"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-34360"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/hapifhir/org.hl7.fhir.core"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-30T17:21:28Z",
    "nvd_published_at" : "2026-03-31T17:16:32Z"
  }
}