openIMIS scopes every staff account to a set of administrative districts, and every read query it answers is filtered to those districts. Then it bolts on a FHIR Subscription feature that pushes resources to a registered webhook the moment a matching event fires, and that push path forgets the district entirely. A claim is converted to FHIR once and the one identical copy is delivered to every subscriber whose criteria match, no matter which district they belong to. A clerk scoped to one district registers a subscription and starts receiving diagnosis-bearing claim notifications for patients in every district in the country.

TL;DR
The defect.
NotificationManager.notify_subscribers()converts an IMIS resource to FHIR exactly once, then hands that single payload topropagate_notifications()for delivery to all matching subscribers. Nothing between the event and the HTTP push consults the subscriber's district scope.What it grants. An authenticated account holding the FHIR subscription rights, assigned to one district, receives a continuous automated stream of claim data (diagnosis codes tied to named patients) from every district in the system. It is a standing leak, not a one-time read.
The tell. Three of the four subscribe signals are explicitly set to
Falsein the default config. The fourth, the one carrying medical diagnosis data, is simply absent, so its ownTruedefault wins. The most sensitive stream is on by omission.Reach. Stock
api_fhir_r4code. Requires an authenticated subscriber account scoped to at least one district. Claim notifications are on by default.Status. Reproduced on
ghcr.io/openimis/openimis-be:develop. Fixed in the openIMIS 2026-10 release.
At a Glance
CVE | CVE-2026-82494 |
Product | openIMIS (open-source health insurance management, Django), FHIR R4 Subscriptions |
Class | CWE-863, Incorrect Authorization (secondary CWE-918, SSRF) |
Root cause | A resource is converted to FHIR once and the identical payload is pushed to every matching subscriber, with no per-subscriber row-security filter on the push path |
Impact | Cross-district disclosure of protected health information through standing webhook subscriptions |
Affected | openIMIS before the 2026-10 release |
Fixed | 2026-10 release |
Severity | 6.5 CVSS 3.1 / 7.1 CVSS 4.0 (Medium) |
Disclosure | Coordinated; fixed upstream |
Credit | CodeAnt AI Security |

A Boundary Made of Districts
openIMIS is run by national and regional health insurance schemes, and its access model is geographic. A staff account is assigned to one or more administrative districts, and the query layer enforces that assignment on read. When a clerk in one district lists claims, insurees, or coverage, row-level security narrows the result set to the facilities and regions that account is allowed to see. A clerk in district 17 does not see district 55's patients, by construction, because the queryset is filtered before it ever reaches the clerk.
That district filter is the whole confidentiality boundary for patient data. The scheme hands out hundreds of low-privilege operator accounts, each pinned to a local office, and trusts the row-security layer to keep each office inside its own catchment. The claims those offices handle carry ICD diagnosis codes attached to named patients, which is exactly the protected health information the district scoping exists to compartmentalize.
FHIR Subscriptions are a different shape of access. Instead of a clerk pulling data through a filtered query, the server pushes data outward to a registered HTTP endpoint whenever a matching event occurs. The question this finding answers is simple: when the server pushes, does it apply the same district filter it applies when the clerk pulls? It does not.
The Push Path Converts Once and Sends to All
The delivery logic lives in NotificationManager. When a subscribed event fires, it converts the IMIS resource to FHIR and propagates it:
Read those three lines against the district model and the defect is immediate. fhir_content is built one time, from the raw resource, with no subscriber in scope. _validate_subscribers checks that the subscriber records are well-formed, not that any given subscriber is entitled to the resource. Then the single fhir_content object is handed to propagate_notifications, which fans it out to every subscriber in valid. The payload is identical for all of them because it was computed before the subscriber list was even consulted.
The absence is not subtle. Across notificationManager.py and its delivery helper notificationClient.py, there is no occurrence of has_perms, get_queryset, ROW_SECURITY, district, or health_facility. Not one. Every term the rest of the codebase uses to enforce the geographic boundary is missing from the exact path that mails patient data out of the building. The read side filters; the push side was never taught that filtering is its job.
The Impact, Proven
We proved the cross-district disclosure end to end in the lab. The actors were two accounts in different districts and one webhook listener.
A subscriber account, subuser, was assigned to district 17 only. Acting as that account, we registered a Subscription to Claim resources pointed at a listener we controlled:
Then, as a completely separate account, we submitted a claim at health facility 026e088a-fbd5-474e-8d42-069958a34127, which belongs to district 55 (Jambero), nowhere near district 17. Seconds later the listener logged an inbound push:
A district 17 account received a ClaimResponse for a claim submitted in district 55, automatically, within seconds, with no action on the subscriber's part beyond having registered the subscription once. The fresh timestamp confirms it was live traffic, not stale data from an earlier run. The honest ceiling here is that this is a confidentiality breach only: the subscriber reads data it should not see. The push does not let the subscriber alter or destroy anything, and that is why the score caps where it does.
One reproduction caveat matters for anyone verifying this. The claim must be submitted through the FHIR REST endpoint, not the GraphQL createClaim mutation. Only ClaimSubmitService.enter_and_submit(), invoked from api_fhir_r4/serializers/claimSerializer.py:199, fires the claim.enter_and_submit_claim signal that the notification path listens for. The GraphQL mutation writes the same claim but never raises that signal, so it never triggers a push.
The Signal That Was On by Omission
The strongest credibility beat is the project's own configuration, because it shows the other three cases were handled and this one was not. openIMIS exposes four subscribe signals. Three are explicitly disabled in the default config. The fourth is absent, so its module-level default of True takes effect.
Signal | Carries | Default config | Effective state |
|---|---|---|---|
| Insuree records |
| Off |
| Facility locations |
| Off |
| Invoices |
| Off |
| Claims (diagnosis codes, named patients) | absent | On ( |
Someone went through this list and switched three signals off. The one they left out is the one that streams ICD diagnosis codes tied to patient identities, which is the most sensitive of the four. There is no flag in the default config that turns it off, so a stock install broadcasts claim notifications the moment any subscriber registers for them. Row-level security is applied consistently everywhere else in the codebase, which makes its absence on this path look like an oversight rather than a deliberate exception, and the config lays that oversight out in black and white.
Reach and the SSRF Characteristic
This is stock code in the api_fhir_r4 module, not a plugin and not a non-default build. The only privilege required is an authenticated account that holds the FHIR subscription create and search rights and is assigned to at least one district, which is the ordinary position of a district operator. Because the push is a standing subscription, the exposure is continuous: every future claim that matches the criteria is delivered automatically until someone deletes the subscription.
There is a second characteristic worth naming honestly, and naming as plausible rather than proven. The subscription endpoint is syntax-checked only:
It is a plain string field with a length cap and no host validation. From the code path, a subscriber can register an endpoint pointing at an internal network address, and the server will dutifully POST resource payloads to it, which is the classic shape of a server-side request forgery primitive. We did not demonstrate reaching an internal service, so we do not claim SSRF-to-internal-services as a proven result. It is a plausible secondary consequence of the unvalidated endpoint, and the durable fix should close it, but the proven and scored primitive in this advisory is the cross-district PHI disclosure, nothing more.
Severity
Metric | Value |
|---|---|
CVSS 3.1 | 6.5, CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
CVSS 4.0 | 7.1, CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
The attack is network reachable with low complexity, and the only privilege required is an ordinary district-scoped subscriber account, which is PR:L. Confidentiality is High, because the account reads full claim resources, diagnosis codes and patient identities included, from districts it has no right to see. The score stops there for a reason that matters: integrity and availability are both None. The push path only discloses; it does not let the subscriber create, change, or delete any record, and it does not degrade the service. We deliberately do not claim a Scope change or an inflated number. The proven primitive is confidentiality-only, so the vector is confidentiality-only, which is why this is the lowest-scored finding in the openIMIS batch. The unvalidated endpoint could add an SSRF dimension, but since we did not prove it, it does not lift the number.
Detection and Fix
Upgrade. openIMIS addressed this in the 2026-10 release; upgrading is the durable remedy. The remedies below reduce exposure for installs that cannot upgrade at once, and the untested ones are reasoned from the code path, so validate before relying on them.
The durable code fix is to make the push path obey the same row-security contract the read path already obeys. Instead of converting the resource once and broadcasting the single payload, the manager should evaluate each subscriber's district scope against the specific resource before delivering, and skip any subscriber whose scope does not cover it. The conversion can stay shared, but the entitlement decision has to be per subscriber, computed from the same ROW_SECURITY and district logic that filters the clerk's queryset. The endpoint field should also move from a bare syntax check to an operator-configured allow-list of destination hosts, which closes the SSRF characteristic at the same time.
If you cannot upgrade immediately, these reduce exposure but each has a cost:
Add
subscribe_claim_signal: Falseto the default configuration to match the three sibling signals. This stops the diagnosis-bearing claim stream specifically, and it breaks any legitimate claim-notification integration you are running.Constrain subscription endpoints to an operator-maintained allow-list of trusted hosts. This blocks arbitrary and internal destinations, and it breaks subscriptions pointed at hosts not on the list.
Apply the subscriber's row-security scope to each notification individually, as above. This is the real fix rather than a mitigation, and it is the change that preserves the feature while closing the leak.
Disclosure Timeline
Date | Event |
|---|---|
2026-08-26 | CodeAnt AI Security Research reported seven openIMIS findings (two Critical, five High) to VulnCheck for coordinated vulnerability disclosure. |
2026-08-31 | VulnCheck confirmed receipt and opened coordination with the openIMIS maintainers. |
September 2026 | openIMIS acknowledged the reports; the next release was in its UAT phase. |
October 2026 | openIMIS published the 2026-10 release. |
2026-11-17 | openIMIS maintainers confirmed that the 2026-10 release addresses all reported findings, and CVE records were drafted. |
Credit and Scope
Finding | CodeAnt AI Security |
What we claim | The FHIR Subscription push path applies no per-subscriber district filter; demonstrated cross-district disclosure of a |
What we do not claim | Any integrity or availability impact; a proven SSRF reaching an internal service (plausible from the unvalidated endpoint, not demonstrated); a measurement of real-world prevalence |
Related | CVE-2026-82495, the sibling |
Coordination | Reported to openIMIS; fixed in the 2026-10 release |
More from CodeAnt
CVE-2026-82495: The Empty Permission List That Let Anyone Delete Coverage, the sibling
api_fhir_r4authorization gapCVE-2026-82491: Export Field Paths That Traverse to the Signing Keys, an openIMIS ORM path-traversal to JWT forgery
CVE-2026-82489: The Report Previewer That Needed No Login, an unauthenticated openIMIS RCE
Find out what is already exploitable in your codebase. Book a demo or start a free trial at codeant.ai.






