Skip to content

SNYK: Upgrade ca.uhn.hapi.fhir:hapi-fhir-caching-caffeine from 7.4.0 to 7.6.1 - #1342

Merged
seanmcilvenna merged 5 commits into
devfrom
snyk-upgrade-7170125e99f3edeec68e2d321843a476
Jan 7, 2026
Merged

SNYK: Upgrade ca.uhn.hapi.fhir:hapi-fhir-caching-caffeine from 7.4.0 to 7.6.1#1342
seanmcilvenna merged 5 commits into
devfrom
snyk-upgrade-7170125e99f3edeec68e2d321843a476

Conversation

@kissalk

@kissalk kissalk commented Dec 25, 2025

Copy link
Copy Markdown
Contributor

snyk-top-banner

Snyk has created this PR to upgrade ca.uhn.hapi.fhir:hapi-fhir-caching-caffeine from 7.4.0 to 7.6.1.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 6 versions ahead of your current version.

  • The recommended version was released a year ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity XML External Entity (XXE) Injection
SNYK-JAVA-CAUHNHAPIFHIR-7924769
599 No Known Exploit
critical severity XML External Entity (XXE) Injection
SNYK-JAVA-CAUHNHAPIFHIR-8344149
599 Proof of Concept
high severity XML External Entity (XXE) Injection
SNYK-JAVA-CAUHNHAPIFHIR-8366327
599 No Known Exploit
high severity XML External Entity (XXE) Injection
SNYK-JAVA-CAUHNHAPIFHIR-7924770
599 No Known Exploit
critical severity XML External Entity (XXE) Injection
SNYK-JAVA-CAUHNHAPIFHIR-8344148
599 Proof of Concept
high severity XML External Entity (XXE) Injection
SNYK-JAVA-CAUHNHAPIFHIR-8366328
599 No Known Exploit
high severity XML External Entity (XXE) Injection
SNYK-JAVA-CAUHNHAPIFHIR-7924771
599 No Known Exploit
critical severity XML External Entity (XXE) Injection
SNYK-JAVA-CAUHNHAPIFHIR-8344147
599 Proof of Concept
high severity XML External Entity (XXE) Injection
SNYK-JAVA-CAUHNHAPIFHIR-8366326
599 No Known Exploit
high severity XML External Entity (XXE) Injection
SNYK-JAVA-CAUHNHAPIFHIR-7924772
599 No Known Exploit
critical severity XML External Entity (XXE) Injection
SNYK-JAVA-CAUHNHAPIFHIR-8344146
599 Proof of Concept
high severity XML External Entity (XXE) Injection
SNYK-JAVA-CAUHNHAPIFHIR-8366323
599 No Known Exploit
high severity XML External Entity (XXE) Injection
SNYK-JAVA-CAUHNHAPIFHIR-7924773
599 No Known Exploit
critical severity XML External Entity (XXE) Injection
SNYK-JAVA-CAUHNHAPIFHIR-8344145
599 Proof of Concept
high severity XML External Entity (XXE) Injection
SNYK-JAVA-CAUHNHAPIFHIR-8366324
599 No Known Exploit
high severity XML External Entity (XXE) Injection
SNYK-JAVA-CAUHNHAPIFHIR-7924774
599 No Known Exploit
critical severity XML External Entity (XXE) Injection
SNYK-JAVA-CAUHNHAPIFHIR-8344144
599 Proof of Concept
high severity XML External Entity (XXE) Injection
SNYK-JAVA-CAUHNHAPIFHIR-8366325
599 No Known Exploit
critical severity XML External Entity (XXE) Injection
SNYK-JAVA-CAUHNHAPIFHIR-8344142
599 Proof of Concept
critical severity XML External Entity (XXE) Injection
SNYK-JAVA-CAUHNHAPIFHIR-8344143
599 Proof of Concept
critical severity XML External Entity (XXE) Injection
SNYK-JAVA-CAUHNHAPIFHIR-8344150
599 Proof of Concept
medium severity Uncontrolled Resource Consumption ('Resource Exhaustion')
SNYK-JAVA-COMMONSIO-8161190
599 No Known Exploit

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Summary by CodeRabbit

  • Chores
    • Updated HAPI FHIR library version from 7.4.0 to 7.6.1, incorporating the latest bug fixes and improvements from the upstream dependency.

✏️ Tip: You can customize this high-level summary in your review settings.

…o 7.6.1

Snyk has created this PR to upgrade ca.uhn.hapi.fhir:hapi-fhir-caching-caffeine from 7.4.0 to 7.6.1.

See this package in maven:
ca.uhn.hapi.fhir:hapi-fhir-caching-caffeine

See this project in Snyk:
https://app.snyk.io/org/kissalk/project/c2b0e7db-dcef-4bb4-8cee-4296fed9fe1d?utm_source=github&utm_medium=referral&page=upgrade-pr
@kissalk
kissalk requested a review from a team as a code owner December 25, 2025 10:55
@coderabbitai

coderabbitai Bot commented Dec 25, 2025

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

📝 Walkthrough

Walkthrough

The HAPI FHIR dependency version in the Maven configuration was updated from 7.4.0 to 7.6.1. This is a straightforward version bump in the project's property definitions that affects the resolved dependency across the Maven build.

Changes

Cohort / File(s) Summary
Dependency Version Update
Java/pom.xml
Updated HAPI FHIR version property from 7.4.0 to 7.6.1 in Maven properties; affects hapi-fhir-bom and related transitive dependencies

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A hop, a skip, through version lanes so fine,
From 7.4.0 to 7.6.1 we align,
Dependencies updated, everything's right,
The FHIR framework shines ever so bright! ✨

Pre-merge checks

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description check ⚠️ Warning The description lacks required sections from the template: 'Description of Changes' overview, 'Testing Performed' section, unit testing checklist, and documentation updates are all missing or incomplete. Add the required template sections: provide a summary of changes, describe testing performed, confirm unit test coverage, and document any updates needed.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: upgrading a Maven dependency version as identified by Snyk security scanning.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

Warning

Review ran into problems

🔥 Problems

Errors were encountered while retrieving linked issues.

Errors (22)
  • CAUHNHAPIFHIR-7924769: Request failed with status code 404
  • CAUHNHAPIFHIR-8344149: Request failed with status code 404
  • CAUHNHAPIFHIR-8366327: Request failed with status code 404
  • CAUHNHAPIFHIR-7924770: Request failed with status code 404
  • CAUHNHAPIFHIR-8344148: Request failed with status code 404
  • CAUHNHAPIFHIR-8366328: Request failed with status code 404
  • CAUHNHAPIFHIR-7924771: Request failed with status code 404
  • CAUHNHAPIFHIR-8344147: Request failed with status code 404
  • CAUHNHAPIFHIR-8366326: Request failed with status code 404
  • CAUHNHAPIFHIR-7924772: Request failed with status code 404
  • CAUHNHAPIFHIR-8344146: Request failed with status code 404
  • CAUHNHAPIFHIR-8366323: Request failed with status code 404
  • CAUHNHAPIFHIR-7924773: Request failed with status code 404
  • CAUHNHAPIFHIR-8344145: Request failed with status code 404
  • CAUHNHAPIFHIR-8366324: Request failed with status code 404
  • CAUHNHAPIFHIR-7924774: Request failed with status code 404
  • CAUHNHAPIFHIR-8344144: Request failed with status code 404
  • CAUHNHAPIFHIR-8366325: Request failed with status code 404
  • CAUHNHAPIFHIR-8344142: Request failed with status code 404
  • CAUHNHAPIFHIR-8344143: Request failed with status code 404
  • CAUHNHAPIFHIR-8344150: Request failed with status code 404
  • COMMONSIO-8161190: Request failed with status code 404

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@seanmcilvenna seanmcilvenna changed the title [Snyk] Upgrade ca.uhn.hapi.fhir:hapi-fhir-caching-caffeine from 7.4.0 to 7.6.1 SNYK: Upgrade ca.uhn.hapi.fhir:hapi-fhir-caching-caffeine from 7.4.0 to 7.6.1 Jan 6, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Fix all issues with AI Agents
In @Java/pom.xml:
- Line 24: The pom property hapi-fhir.version currently set to 7.6.1 introduces
major breaking changes and technical debt; either update the property to a
supported 8.6.1 (if compatible) or keep 7.6.1 but augment the PR with a
comprehensive testing and migration plan: list integration tests for FHIR PATCH
multi-element behavior, Patient compartment and Group/List authorization
changes, $export and $everything compartment behavior, subscription/
HFJ_RESOURCE_MODIFIED schema migration health checks, and regression tests for
custom FHIRPath operations; explicitly state the chosen path (immediate 8.x
migration vs. 7.6.1 + testing) in the PR description so the upgrade risk is
documented.
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Jira integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 4cdb159 and 664b88d.

📒 Files selected for processing (1)
  • Java/pom.xml
🧰 Additional context used
📓 Path-based instructions (1)
**

⚙️ CodeRabbit configuration file

**: Pull requests that have "TECH_DEBT" in the title should only contain changes related to typos, unused code, linter/IDE suggestions, swagger specification updates,
and logging improvements. These TECH_DEBT PRs must not affect core functionality. All PRs that are not considered technical debt must include information on what
testing was performed in the description of the PR. If it does not, ask the author to provide details on what testing was performed.
When reviewing code, suggest unit tests using XUnit in the following scenarios:

  • If/Else or Switch/Case blocks are introduced or modified — ensure each branch has a corresponding unit test.
  • Logic that depends on service or interface configuration — suggest tests to validate different implementations are correctly resolved.
  • No network activity (HTTP calls, sockets, etc.) should appear in unit tests. Recommend using mocks (via Moq) for any external communication.
    Large unit tests should be avoided; keeping unit tests small and focused on targeted business logic (i.e. string sanitization)

**: Pull requests that have DOCS in the title should only contain changes related to documentation within the /docs folder or in .md files through-out the code-base. The description
of the PR should specify what documentation was updated. Documentation updates should use EventCatalog.dev structure, where service-specific functionality should be described
in the service's index.mdx (i.e. /services/XXX/index.mdx or /domains/XXX/services/YYY/index.mdx). Configurations that are shared by multiple services should be
reflected in the /docs/docs/config files.

Files:

  • Java/pom.xml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
  • GitHub Check: Smoke Test with Docker Compose
  • GitHub Check: Unit Tests for DotNet
  • GitHub Check: Integration Tests
  • GitHub Check: Build Documentation
  • GitHub Check: Analyze (java-kotlin)
  • GitHub Check: Analyze (csharp)

Comment thread Java/pom.xml
<properties>
<cqf-fhir.version>3.12.0</cqf-fhir.version>
<hapi-fhir.version>7.4.0</hapi-fhir.version>
<hapi-fhir.version>7.6.1</hapi-fhir.version>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🌐 Web query:

HAPI FHIR 7.6.1 release notes changelog breaking changes

💡 Result:

HAPI FHIR 7.6.1 (Despina) — release date: 2024-12-18. Breaking changes (summary):

  • Device membership in Patient Compartment: For FHIR < R5, the Device.patient search parameter is now treated as part of the Patient compartment. This affects Patient _revInclude=*, Patient instance/type $everything, automatic search narrowing, and Bulk Export (previous shims removed). [1]

  • FHIRPath PATCH semantics: PATCH operations that match multiple elements will no longer replace multiple values and will throw an exception (now aligned with the spec). [2]

  • Authorization / patient-compartment rules: Auth rules that grant access to resources in the patient compartment will no longer implicitly grant access to Group or List resources in that compartment; additional permissions are required. [2]

  • $export and $everything behavior: $export and $everything on Patient compartment (instance or type) will no longer return List or Group resources regardless of auth rules. [2]

  • Database / subscription-related change: HFJ_RESOURCE_MODIFIED table schema changes (affects zero-downtime upgrades; subscriptions must be healthy to avoid prolonged locks). This is noted as a breaking change. [2]

(References: HAPI FHIR changelog / 7.6.1 release notes.) [1] [2]

Sources:
[1] HAPI FHIR changelog — HAPI FHIR 7.6.1 (Despina) (release info).
[2] HAPI FHIR changelog — Breaking Changes (7.6.1).


🌐 Web query:

HAPI FHIR 7.4.0 to 7.6.1 XXE vulnerability security fix

💡 Result:

Short answer: The XXE issues (multiple advisories/CVEs: e.g. CVE-2024-51132 / CVE-2024-52007 and related XXE reports) were fixed by upgrading the org.hl7.fhir.core / org.hl7.fhir.utilities components to 6.4.0. Any HAPI FHIR build that depends on org.hl7.fhir.core >= 6.4.0 includes that fix; versions that depend on older core artifacts remain vulnerable. (nvd.nist.gov)

What to do:

  • If your HAPI FHIR 7.4.0–7.6.1 installation pulls org.hl7.fhir.core (or org.hl7.fhir.utilities) version < 6.4.0, upgrade those artifacts to 6.4.0+ (or upgrade to a HAPI release that bundles core 6.4.0+). (advisories.gitlab.com)

References:

If you want, tell me the exact HAPI 7.x artifact(s) (pom or jar) you’re using and I’ll check which org.hl7.fhir.core version they depend on.

Citations:


🏁 Script executed:

#!/bin/bash
# Check Maven Central for HAPI FHIR versions
echo "=== Latest HAPI FHIR BOM versions from Maven Central ==="
curl -s https://repo1.maven.org/maven2/ca/uhn/hapi/fhir/hapi-fhir-bom/maven-metadata.xml 2>/dev/null | grep -oP '(?<=<version>)[^<]+' | tail -10

Repository: lantanagroup/link-cloud

Length of output: 183


🌐 Web query:

HAPI FHIR latest version January 2026

💡 Result:

The latest stable HAPI FHIR release as of January 6, 2026 is HAPI FHIR 8.6.0 (released November 20, 2025). [1]

The HAPI FHIR docs site is currently showing documentation for 8.8.0 (and changelog entries for 8.8.0 exist), which appears to be a newer/TBD release on the docs site. [2]

Sources:

  • HAPI FHIR changelog / 8.6.0 release notes (released Nov 20, 2025). [1]
  • HAPI FHIR documentation showing 8.8.0 (TBD/release entry). [2]

Version upgrade is outdated; address major breaking changes and provide required testing details.

The upgrade to 7.6.1 addresses XXE vulnerabilities (CVE-2024-51132, CVE-2024-52007) fixed in org.hl7.fhir.core 6.4.0+, but version 7.6.1 (released Dec 2024) is significantly outdated—HAPI FHIR 8.6.1 is currently available. Proceeding with 7.6.1 creates immediate technical debt requiring another major upgrade soon.

Critical breaking changes in 7.6.1 require comprehensive testing:

  • Device/Patient compartment membership rules changed
  • FHIRPath PATCH now throws exceptions on multi-element matches (breaking change)
  • Authorization rules no longer implicitly grant Group/List access in patient compartment
  • $export and $everything behavior altered for compartment queries
  • HFJ_RESOURCE_MODIFIED table schema changes (affects zero-downtime upgrades and subscription health)

Per coding guidelines, all non-TECH_DEBT PRs must include testing information. Add to PR description:

  • Integration tests validating FHIR PATCH operations (especially multi-element scenarios)
  • Tests confirming Patient compartment and Group/List authorization behavior
  • Validation of $export and $everything operations on patient compartments
  • Subscription health verification before and after schema migration
  • Regression testing for any custom FHIRPath operations

Recommend: Either commit to comprehensive testing for 7.6.1's breaking changes and plan imminent 8.x migration, or evaluate jumping directly to 8.6.1 if major version compatibility allows.

🤖 Prompt for AI Agents
In @Java/pom.xml at line 24, The pom property hapi-fhir.version currently set to
7.6.1 introduces major breaking changes and technical debt; either update the
property to a supported 8.6.1 (if compatible) or keep 7.6.1 but augment the PR
with a comprehensive testing and migration plan: list integration tests for FHIR
PATCH multi-element behavior, Patient compartment and Group/List authorization
changes, $export and $everything compartment behavior, subscription/
HFJ_RESOURCE_MODIFIED schema migration health checks, and regression tests for
custom FHIRPath operations; explicitly state the chosen path (immediate 8.x
migration vs. 7.6.1 + testing) in the PR description so the upgrade risk is
documented.

@seanmcilvenna
seanmcilvenna merged commit 4a51630 into dev Jan 7, 2026
18 checks passed
@seanmcilvenna
seanmcilvenna deleted the snyk-upgrade-7170125e99f3edeec68e2d321843a476 branch January 7, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants