---
id: CVE-2026-126494
title: OpenEMR before 8.4.0 Privilege Escalation via SMART/OAuth Scope Finalization
summary: >-
  OpenEMR before 8.4.0 contains an improper authorization vulnerability in
  ScopeRepository::finalizeScopes() that allows read-only SMART/OAuth clients to
  obtain write scopes because ScopeEntity::containsScope() ignores registered
  permissio…
severity: high
cvss: 7.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L'
cvssSource: cna
cwe:
  - CWE-863
vendor: openemr
product: openemr
affected:
  - openemr < 8.4.0
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-17T20:35:44.073691Z'
exploitAvailable: true
published: '2026-11-13'
updated: '2026-11-17'
sourceUpdated: '2026-11-17T20:42:12.771Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-126494'
references:
  - url: 'https://github.com/openemr/openemr/security/advisories/GHSA-6cmr-r2rh-755m'
    label: GitHub Security Advisory (GHSA-6cmr-r2rh-755m)
  - url: >-
      https://www.vulncheck.com/advisories/openemr-before-8.4.0-privilege-escalation-via-smart-oauth-scope-finalization
    label: >-
      VulnCheck Advisory: OpenEMR before 8.4.0 Privilege Escalation via
      SMART/OAuth Scope Finalization
tags:
  - cve.org
  - exploit-available
epss: 0.00352
epssPercentile: 0.21239
ingestedAt: '2026-11-13T10:36:39.599Z'
---

## Overview

OpenEMR before 8.4.0 contains an improper authorization vulnerability in ScopeRepository::finalizeScopes() that allows read-only SMART/OAuth clients to obtain write scopes because ScopeEntity::containsScope() ignores registered permissions. Attackers with a client registered for user/<resource>.read can request user/<resource>.write to create, update, and delete appointments or patient data.

## Affected

- `openemr < 8.4.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
