Repository navigation
2026/11/30 Release 5.0.0
matchbox 5 is based on Spring Boot 4, HAPI FHIR 9 and org.hl7.fhir.core 7. The main changes since 4.1.21 are listed
here, the details are in the sections of the release candidates 5.0.0-rc1 to 5.0.0-rc6 below.
Platform
- The Docker images are published to the GitHub container registry only:
ghcr.io/ahdis/matchbox
(#659). Useghcr.io/ahdis/matchbox:v5.0.0(or:latest) instead
ofeurope-west6-docker.pkg.dev/ahdis-ch/ahdis/matchbox: the Google Artifact Registry keeps the images up to
4.1.21, but doesn't get the images from 5.0.0 on. Thelatesttag is only moved by a release (vX.Y.Z), not by a
pre-release (e.g.v5.1.0-alpha1,v5.1.0-rc1) - Spring Boot 4.0.9 and Spring Framework 7.0.10 (fixes
spring-webmvc
CVE-2026-47884), with Hibernate ORM 7.2, Jakarta EE 11,
Jackson 3 and JUnit 6 - HAPI FHIR 9.0.0 from Maven Central. The release candidates used the build
8.13.15-pr8189-1of
hapifhir/hapi-fhir#8189 from GitHub Packages: building matchbox doesn't need a GitHub token withread:packages
anymore, andmatchbox-engineis published to Maven Central again. The patched HAPI FHIR classes are updated to
9.0.0 (JpaConfig,PackageLoaderSvc,TermReadSvcImpl,NpmPackageVersionResourceEntity,
WorkerContextValidationSupportAdapterand theHapiWorkerContextof R4, R4B and R5) - Matchbox runs on Tomcat 11.0.27 instead of Undertow, which Spring Boot 4 doesn't support anymore. The
server.undertow.max-http-post-sizesetting isn't needed anymore - org.hl7.fhir.core 7.0.8 (from 6.10.4): the
validator, the FHIR mapping language and the worker context are based on the versionless R6 modules
(org.hl7.fhir.model,org.hl7.fhir.services,org.hl7.fhir.standalone) instead oforg.hl7.fhir.r5, with new
checks of the validator and changes in the terminology handling, see 5.0.0-rc1 and 5.0.0-rc4. Since 7.0.7 the
validator reports a value set as not valid when it lists codes that a complete code system doesn't have; matchbox
doesn't apply this tourn:ietf:rfc:3986, where every URI is a code (the IHE format codes list URIs, and
conformsTo()failed for the IHE MHD DocumentReference profiles of CH EPR FHIR) - Update hl7.fhir.uv.extensions to 5.4.1.
Changes for the users of matchbox-engine
- The API of
MatchboxEngineuses the R6 model (org.hl7.fhir.model.core,StructureMapis
org.hl7.fhir.model.fml.StructureMap), with overloads for the HAPI R5 model (addCanonicalResource,
createSnapshot) andR6Modelto convert between them.parseMapR6andgetStructureDefinitionR6return the R6
model,parseMapR5andgetStructureDefinitionR5still the HAPI R5 model createSnapshotadds the snapshot to the StructureDefinition it is given (it returned a new instance).
useTxCacheFolder(folder)anddisableTxCache()replaceinitTxCache(folder), which is deprecated
Validation
- Validation is about twice as fast for profiles whose invariants resolve canonical resources, e.g. ch-elm (45 instead
of 95–102 ms per validation in the load test): each engine keeps the last 100 resources it converted for
resolve()(matchbox.fhir.context.fetchCacheSize,0to keep none) - New validation parameters
bpWarningsandresourceIdRule(#589) - For a profile that no engine knows,
$validateanswers "Validation for profile '...' not supported by this validator
instance", like the Gazelle API - The engine for an IG no longer replaces the suppressed warnings and errors of the other engines
(matchbox.fhir.context.suppressWarnInfo,matchbox.fhir.context.suppressError) - The terminology ecosystem of HL7 (
https://ecosystem.hl7.org/tx-reg, e.g. for the Swiss SNOMED CT edition on
tx.fhir.ch) is also used withhttp://tx.fhir.org, and not with other terminology servers Bundle/$get-profiles(and the MCP toolget-profiles-for-document-bundle) matches the profiles of a document with
any of the type and category codings of its Composition$validate, the Gazelle API and the ITB API share one validation service (MatchboxValidationService), so that
they select the profile, get the engine, validate, count and report in the same way
(#702):- ITB API: without the input
profiles, the firstmeta.profileof the resource is the profile (then the base
profile of its resource type), as for the type-level$validate. If the validation engine is not yet
initialized, the report isUNDEFINEDinstead ofFAILURE - Gazelle API: the validation duration is recorded in the metrics, and the validation parameters with several
values are listed with their values in the report metadata - Validation statistics (
matchbox.validation.save-statistics): the validations of the Gazelle API and the ITB
API are saved as well - The duration in the OperationOutcome and in the metrics is the duration of the validation, without the time to
get or create the validation engine
- ITB API: without the input
- The
sessionIdof a validation engine is a digest of its validation parameters instead of their 32-bit hash code,
which could give two different sets of parameters the same engine. Requests with the samecheck-references-to
values share an engine (a new engine was created for every request) - The validation parameter
showMessageIdsof a request is applied (the setting of the server was used) - The
extensionssetting of the server (matchbox.fhir.context.extensions, defaultany) applies to the validation
engines of all implementation guides, and not only to the engine of the FHIR core package: it was dropped from the
validation parameters of a request, which then had to sendextensionsitself.check-references-towas dropped in
the same way, andmatchbox.fhir.context.checkReferencesTowas not read - An implementation guide of the validation parameter
igthat is not installed is installed from the package
registry before the validation (id#version), if the server is not read-only (httpReadOnly), for$validate, the
ITB API and the HL7 validator API alike (#702). This brings back the
auto-installation of$validatefor theigparameter; a profile of an implementation guide that is not installed
doesn't install it. If the implementation guide cannot be installed (read-only server, no exact version, not in the
registry), the request gets an error instead of a validation without the implementation guide - Internal terminology server (
[server]/tx):CodeSystem/$lookupanswers with HTTP 404 and an
OperationOutcome (not-found), as the server knows nothing about the codes it accepts. The operation failed with
"HAPI-0436: Resource null is not known" and a warning "Failure during REST processing" in the log of the server,
for every LOINC and SNOMED CT code of an Observation that the validator of org.hl7.fhir.core 7 looks up
(#710)
New APIs
- The validation API of the HL7 validator, as validator.fhir.org has it:
POST [server]/core/validatewith the
ValidationRequestandValidationResponseof org.hl7.fhir.core, so that a client of the HL7 validator can use
matchbox with only the address changed (#702). The implementation
guides are given asigsorig; the same set of implementation guides always gives the same validation engine,
which is shared with$validate. An implementation guide that is not installed is installed from the package
registry (id#version), as theloadIGoperation of the ITB API does; a read-only server (httpReadOnly) installs
nothing and answers with HTTP 400. Only the parameters that are in
the request override the validation parameters of the server. An unexpected error is answered with HTTP 500 and an
error id, the exception is in the log of the server. See the
HL7 validator API reference - ITB (GITB REST) services for the Interoperability Test Bed (ITB 1.30.0 or later, with
handlerApiType="REST"):
the validation serviceFHIRValidatorunder[server]/itb/fhir
(#589) and the processing servicesFHIRPathProcessorunder
[server]/itb/fhirPathandIGManagerunder[server]/itb/igManager
(#681). They follow the contract of the HL7 validator's ITB
services (hapifhir/org.hl7.fhir.core#2615), with one deviation: an invalid request (a missing or empty required
input, an input value that is not valid, an unknown operation) is answered with HTTP 200 and a report with the
resultFAILUREthat says what is wrong, and not with HTTP 400 and{"error": ...}, as ITB only keeps the status
code of an answer that is not 2xx and the author of the test case would not see the reason. A body that is not JSON
still gets HTTP 400. An internal error (HTTP 500) has an error id instead of the message of the exception, which is
in the log of the server. See the ITB API reference onlyOneEnginemode: searching ValueSets (GET [base]/ValueSet) works again
(#663), and the NamingSystems of the main engine are exposed (GET [base]/NamingSystem, #664)- Loading packages from
http(s)URLs follows redirects (#75) and supports a package URL allow-list
(IPackageUrlAllowListProvider)
Security
- Docker image: the base image is the latest Java 25 JRE, containing the mitigation of CVE-2026-114938 ("Java4Shell")
and CVE-2026-109518 (apt). - Docker image:
libpam1.5.2-6+deb12u3 of Debian 12 fixes
CVE-2025-6020 (HIGH, local privilege escalation in
pam_namespace), which Trivy reports for the images of 5.0.0-rc6 and before. The image build installs it with the
Debian security updates (apt-get upgrade). matchbox isn't exploitable: the image doesn't enablepam_namespace
and matchbox opens no PAM sessions - Tomcat 11.0.27 fixes CVE-2026-65182,
CVE-2026-65905 and
CVE-2026-68525, Guava 33.7.2 fixes CVE-2026-102554
(graphql-javais excluded) - OpenTelemetry 1.68.0 (
opentelemetry-api, from 1.65.0) withopentelemetry-spring-boot-starter2.34.0 (from
2.31.1) fixes CVE-2026-118259 (quadratic CPU
consumption in the parsing of the W3Ctracestateheader) - The release workflow builds the Docker image and scans it with Trivy before the tag and the release are created, a
HIGH or CRITICAL vulnerability with a fix stops the release - The published Docker image of the newest release is scanned with Trivy every day (
scheduled_scans.yml), a HIGH or
CRITICAL vulnerability with a fix is posted to Zulip - Software Bill of Materials (SBOM, CycloneDX) of the server in
matchbox.jar, provided by the Spring Boot actuator
as/actuator/sbom/applicationand uploaded to the GitHub release (matchbox-server-<version>.cdx.json), the
Docker images have an SBOM attestation,matchbox-engineis published with its SBOM
(matchbox-engine-<version>-cyclonedx.json)
Other
- MCP: the tool
list-fhir-profiles-to-validate-foralways failed with HTTP 400 ("does not know how to handle GET
operation[OperationDefinition]"), it now reads the OperationDefinition of$validateinstead of searching for it
(#686) - Documentation: reorganized according to the Diátaxis framework into tutorials, how-to
guides, reference and explanation. The existing pages were split and moved (the old addresses redirect to the new
ones, withmkdocs-redirects), and new tutorials and how-to guides were added. - Documentation: how to provide implementation guides from files (
file:URLs inhapi.fhir.implementationguides, in
Docker with a volume, dependencies, reinstalling a package with the same version) and how to build an own docker
image with preinstalled packages (#643) - Frontend: Angular 22.2.3 and angular-eslint 22.6.0,
source-map-js1.2.2 (Dependabot alerts
#418,
#419 and
#421, all development dependencies) - The duplicate
opentelemetry-spring-boot-starterentry in thedependencyManagementof the rootpom.xmlis
removed, the Maven version of the GitHub runners rejects it - The workflows don't use
.github/maven-settings.xmland the permissionpackages: readanymore mainis matchbox 5 and the only development branch: the branchmatchbox_v5was merged into it, the workflows
don't run formatchbox_v5anymore and the release workflow no longer handles release candidates (X.Y.Z-rcN)- MCP: the tool
list-fhir-igshad an inverted logic for theincludeVersionsparameter, and the MCP
searches (list-fhir-igs,search-fhir-resources) ignored their search parameters, as they were not in the query
string of the request
(#684). Its testMatchboxApiR4Test.mcpListFhirIgscompares the
number of IGs with the number before the test instead of a fixed number, which failed onmain - Update hl7.terminology to 7.5.0 (#701).
- Tests: the test IG
matchbox.health.test.ig.r40.3.2 depends on the latesthl7.terminology.r4#7.5.0and
hl7.fhir.uv.extensions.r4#5.4.1, the versions that are bundled. With 0.3.1 the test server downloaded
hl7.terminology.r4#7.4.0, and since the update of the extensions to 5.4.1 alsohl7.fhir.uv.extensions.r4#5.3.0
with its dependencies, from the registry (#701) - MCP: the tools
conditional-update-fhir-resourceandconditional-patch-fhir-resourcefailed without anidand
ignored theirquery, theheadersof the tools (e.g.If-None-Exist,If-Match) were ignored, the patch tools
rejected theirresourceandsearch-fhir-resourcesignored itsquerystring
Full Changelog: v5.0.0-rc6...v5.0.0