openIMIS built its FHIR Coverage endpoint to be read-only, and it said so twice. The viewset lists only read mixins, and the write-method permission lists are set empty to mean "not applicable." Both statements fail, in opposite ways, and the failure compounds: the endpoint inherits write support it never asked for, and the empty permission lists that were meant to forbid writes instead wave them through. The result is a hard, unrecoverable DELETE of an insurance policy, reachable by any authenticated account holding no right at all. The irony is that the empty list, written to deny, is the exact thing that grants.

TL;DR
The defect.
FHIRApiCoverageRequestPermissionssetspermissions_delete = []to mean "DELETE is not applicable here," butuser.has_permstreats an empty required-rights list as "nothing required," so the gate opens for everyone.What it grants. Any authenticated openIMIS account, including a zero-rights one, sends
DELETE /Coverage/<uuid>/and permanently removes the policy row that decides whether a person is insured.The irony / the tell. An empty permission list, written to forbid a method, is vacuously satisfied and therefore grants it. The correct pattern, a real right on DELETE, sits in the same file on the
Patientresource and refuses the same account.Reach. Stock code in the
api_fhir_r4module. The FHIR R4 API is a standard part of the deployment, and the only precondition is one valid login with no specific permission.Status. Reproduced on
ghcr.io/openimis/openimis-be:develop. Fixed in the openIMIS 2026-10 release (PR #210).
At a Glance
CVE | CVE-2026-82495 |
Product | openIMIS backend, |
Class | CWE-862, Missing Authorization (vacuous empty-list semantics) |
Root cause | Write methods inherited from a shared base; their permission lists set to |
Impact | Any authenticated account hard-deletes an insurance policy record, with no recovery |
Affected | openIMIS before the 2026-10 release |
Fixed | 2026-10 release (PR #210) |
Severity | 8.1 CVSS 3.1 / 7.2 CVSS 4.0 (High) |
Disclosure | Coordinated with openIMIS and VulnCheck; fixed upstream |
Credit | CodeAnt AI Security |

A Record That Decides Whether You Are Insured
openIMIS is open-source software that runs national and regional health insurance schemes. A FHIR Coverage resource, in its vocabulary, is a Policy: the row in tblPolicy that records that a given insuree is enrolled and currently covered. When a covered person arrives at a clinic, that row is what a claim is checked against. Delete it and the person is, as far as the system is concerned, not insured.
openIMIS exposes this data through a standards-compliant FHIR R4 API in the api_fhir_r4 module. The Coverage endpoint there is meant to be a window, not a door: clients read policies, they do not destroy them through FHIR. Everywhere else in openIMIS a "delete" is soft, the row stays and a validity_to timestamp marks it closed, so history is preserved and the action is reversible. The FHIR Coverage delete at the center of this finding is neither read-only nor soft. It is a hard DELETE that removes the row.
Read-Only, Said Twice, Wrong Twice
The intent to be read-only is expressed in two places, and the bug is that each place quietly undoes the other's purpose.
The first expression is the viewset. It inherits a shared FHIR base and then lists only read mixins, which reads like a declaration that this endpoint reads and nothing more:
Listing RetrieveModelMixin and ListModelMixin adds read support, but it does not remove anything. BaseFHIRView, which every FHIR viewset inherits, already brings CreateModelMixin, UpdateModelMixin, and DestroyModelMixin with it. So CoverageRequestQuerySet has a live destroy() handler, and DELETE /Coverage/<uuid>/ routes straight to it. The read-only intent was expressed by adding, where it needed to be expressed by subtracting.
The second expression is the permission class, and this is where the grant happens:
The author set every write method to [], meaning "no operation here, so no right applies." The framework reads it the other way. openIMIS resolves these lists through user.has_perms, which begins:
An empty required-rights list is not "nobody may," it is "nothing is required," and so it is satisfied by anyone, including an account with zero rights. This is vacuous truth: the statement "the user holds every right in this list" is trivially true when the list is empty. The permission list written to deny is the one line that grants.
The Impact, Proven to a Dead Row
In the lab we authenticated as norights, an account whose rights array is literally empty, and sent one request:
The 204 is the FHIR endpoint reporting a successful delete. The count of 0 is the database confirming it was a hard delete, not the soft validity_to close used everywhere else in openIMIS. The row is gone. There is no application path to bring it back and no closed-record history showing it ever existed. A reader of the database afterward cannot tell the policy was deleted; they can only tell it is not there.
The honest ceiling: this is a destroy primitive, not a read primitive. The attacker learns nothing from the request, so there is no confidentiality impact. What they do is erase the record that determines coverage. Downstream, a person who is in fact insured is treated as uninsured and refused care or billed out of pocket. That is why integrity and availability are both scored High and confidentiality is None.
The Negative Control: Same Account, Same Codebase, Opposite Outcome
The strongest evidence that this is a defect and not a design choice is that the correct pattern is right there in the same file, on a sibling resource, and it refuses the exact account that Coverage accepts.
FHIRApiInsureePermissions, which governs the FHIR Patient endpoint, sets a real right on delete:
Because that list is non-empty, has_perms actually checks it, and the zero-rights account fails the check. We ran both deletes back to back as the same norights account:
Request | Permission list on the method | Result |
|---|---|---|
|
|
|
|
|
|
Same codebase, same unprivileged account, same HTTP verb, opposite outcomes. The only difference is one permission list that holds a right and one that holds nothing. The gate is not missing in general. It is present and working on Patient, and it was defeated on Coverage by the one value that looks like a denial and behaves like a blanket grant.
Reach and Real-World Exposure
This is stock code in the api_fhir_r4 module, not a plugin and not a non-default toggle. The FHIR R4 API ships with the openIMIS backend and Coverage is a standard FHIR resource. The single precondition is one authenticated session with no specific right: the position of any low-privilege operational account, any account issued to a partner or field office, or any such credential that has been phished or leaked.
We do not claim a measurement of how many internet-facing deployments expose the FHIR API without a network control in front of it, and many production schemes sit behind a gateway. What we do claim is that where the FHIR API is reachable by authenticated users at all, the weakest possible account can permanently destroy coverage records, and openIMIS deployments are, by their nature, custodians of exactly the records whose destruction harms real people seeking care.
Severity
Metric | Value |
|---|---|
CVSS 3.1 | 8.1, CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
CVSS 4.0 | 7.2, CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N |
Network reachable, low attack complexity, and the only privilege required is a single valid login with no specific right (PR:L). There is no confidentiality impact, because the request destroys a record rather than reading one. Integrity is High (the delete alters the authoritative state of who is insured) and availability is High (the record determining coverage is destroyed with no in-application recovery). It is not a 10.0: the attacker must already hold an account, the scope is Unchanged because the damage stays within the vulnerable system's own data, and there is no confidentiality loss. This is a high-severity authorization failure, and scoring it honestly at High rather than inflating it to Critical is the point.
Detection and Fix
Upgrade. openIMIS fixed this in the 2026-10 release. PR #210 replaced the empty list with a real right, permissions_delete = rights.POLICY_DELETE, so has_perms now performs an actual check on DELETE /Coverage/. That is the durable remedy.
The deeper fix is twofold, because each half failed independently here. First, when a resource must not support a write method, remove the capability explicitly rather than relying on which mixins a subclass happens to list. Override create/update/destroy, or constrain http_method_names to the methods the endpoint actually serves, so that inheriting a write mixin from a shared base cannot silently re-enable a handler. Second, never use [] to express "this method is forbidden," because has_perms reads an empty list as "no right required" and grants it. "Not applicable" belongs in a method that does not exist, not in an empty right list guarding a handler that does.
Audit the whole family. The root cause is a pattern, not a single typo, so grep every FHIRApi*Permissions class for a write list set to [], and for each match confirm whether the handler is reachable through the inherited base. Any empty write list on a live handler is another instance of this same vacuous grant.
If you cannot upgrade immediately, these reduce exposure but each has a cost, and they are reasoned from the code path rather than a tested control:
Block
DELETEto theCoverageendpoint at the gateway or reverse proxy. This blocks the primitive but also any legitimate FHIR delete, and it does not fix the sibling write methods (POST/PUT/PATCH) carrying the same empty list.Limit which accounts can authenticate to the FHIR API, so low-privilege and partner accounts cannot reach it. This shrinks the pool of accounts that can trigger the delete, but any account still reaching the endpoint still holds the primitive.
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 |
What we do not claim | A measurement of real-world internet exposure; that network controls are absent in any given deployment; any confidentiality impact (the request destroys, it does not read) |
Related | CVE-2026-82494, the sibling |
Coordination | Reported to openIMIS via VulnCheck; fixed in the 2026-10 release (PR #210) |
More from CodeAnt
CVE-2026-82494: The FHIR Subscription That Ignored Row Security, an openIMIS PHI Leak
CVE-2026-82489: The Report Previewer That Needed No Login, an openIMIS Unauthenticated RCE
CVE-2026-82490: The Dashboard Proxy That Authenticated Without Authorizing
Find out what is already exploitable in your codebase. Book a demo or start a free trial at codeant.ai.






