Summary
CVE-2026-126473 is an incorrect authorization (CWE-863) vulnerability in the OAuth implementation of OpenEMR before 8.4.0. Unauthenticated attackers can obtain system-level FHIR access that no administrator approved, including read and write access to patient records. The CVE record lists a CVSS v4.0 score of 9.3 (Critical).
Technical details
- Root cause (scope canonicalization): OpenEMR accepts both colon (
system:Patient.read) and slash (system/Patient.read) forms of OAuth scopes. The approval check only looks for the literalsystem/form. A dynamically registered client that uses the colon form therefore skips the administrator approval requirement. - Root cause (containment): the
containsScope()method returns the requested permission flag without checking whether the server or client actually holds that permission. A client registered for read-only access can request, and receive, an unregisteredsystem/Patient.writescope. - Trigger conditions: the FHIR API is enabled (
rest_fhir_api=1), system scopes are enabled (rest_system_scopes_api=1), and automatic client approval is on (oauth_app_manual_approval=0, the default). - Attack vector: network. The attack needs no authentication, no user interaction, and no administrator action.
- Impact: an attacker can search, read, create, and update patient data through the FHIR API. This breaches confidentiality and integrity of patient records.
Affected software
- OpenEMR versions before 8.4.0
Severity
- CVSS v4.0: 9.3 (Critical),
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N - CVSS v3.1 listed in the CVE record: 9.1 (Critical),
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Mitigation and recommended actions
- Immediate: upgrade OpenEMR to version 8.4.0 or later.
- If you cannot patch right away, use the workarounds from the vendor advisory:
- Disable the FHIR API or system scopes.
- Enable manual approval for OAuth clients (
oauth_app_manual_approval=1). - Restrict network access to the OAuth and FHIR endpoints.
- Review registered OAuth clients and FHIR access logs for unexpected system-level clients or write operations.

