Skip to main content

OpenEMR CVE-2026-126493

| EUVDEUVD-2026-125131 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-13 VulnCheck GHSA-pv8c-r52v-h57w
4.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to patient portal (PR:L)
  2. Delivery
    Store payload via onsiteportalactivity tableArgs API
  3. Exploit
    Payload breaks out of unquoted data-delete-id attribute
  4. Execution
    Provider clicks delete on audit review page
  5. Impact
    JavaScript executes in provider/admin session

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires (1) a valid low-privileged OpenEMR patient portal account to reach the hidden POST /portal/patient/api/onsiteportalactivity endpoint and store a crafted tableArgs value, and (2) a provider or admin user to open the Provider Audit Review page (/portal/patient/onsiteactivityviews) AND actively click the delete (trash) button on the malicious row - matching UI:A in the vector. The specific technical precondition is the unquoted data-delete-id attribute in the delete-button template, where _.escape() does not prevent a space-containing value from injecting a new onclick event handler. Limiting factors that reduce real-world risk: authentication as a patient portal user is mandatory (PR:L), the payload only fires on a privileged user's deliberate click rather than on page load, and installations on OpenEMR 8.5.0 or later are not affected.

Impact

This is a genuine but moderate-priority issue, not a drop-everything emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:A) and the 4.8 Medium score align with the mechanism described: a network-reachable, low-complexity flaw that nonetheless requires an authenticated low-privileged patient portal account (PR:L) AND active interaction from a privileged victim (UI:A) - the provider must open the audit review page and click the delete button for the stored payload to fire. The impact metrics are telling: the vulnerable system itself takes no direct hit (VC:N/VI:N/VA:N), with low confidentiality and integrity impact landing on a subsequent system (SC:L/SI:L) - the provider/admin browser session, which is the real prize (session theft or action forgery in a privileged clinical context). The vuln.today Decision label is 'this_month', consistent with a Medium severity that warrants scheduled remediation rather than crisis response. No EPSS score was supplied, so exploitation-probability modeling is unavailable and cannot be weighed. The CVE is NOT listed in CISA KEV, so there is no confirmed active exploitation. A detailed public PoC (full reproduction steps plus Python request code) is published in the GHSA advisory, which raises practical reproducibility, but PoC availability is a distinct signal from active exploitation and should not be conflated with it. Net: a real, patchable stored XSS worth fixing this cycle, but the dependency on both a patient account and a privileged user click meaningfully limits mass-exploitation potential.

Exploit ScenarioDerived

A patient with a normal portal account submits a POST to the hidden /portal/patient/api/onsiteportalactivity endpoint with a tableArgs value like '1 onclick=alert(1) foo=', which is stored server-side. Because the provider audit review template renders that value into an unquoted data-delete-id attribute, the spaces let it inject a new onclick handler; when a provider or admin later opens the audit review page and clicks the delete button on that row, the attacker's JavaScript executes in the privileged provider browser session. A working PoC with reproduction steps is published in the GHSA advisory, and the low attack complexity (AC:L) makes the storage step trivial, though execution still hinges on the provider clicking.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 13, 2026

Stored cross-site scripting in OpenEMR patient portal versions before 8.5.0 lets any holder of a low-privileged patient portal account persist a crafted tableArgs value through the hidden POST /portal/patient/api/onsiteportalactivity endpoint; the value later lands in an unquoted data-delete-id attribute of the delete button on the Provider Audit Review page and executes only when a provider or administrator actually clicks that button. Session theft or action forgery in the privileged review context is the realistic outcome, but exploitation is gated by mandatory patient-level authentication, deliberate victim interaction, and the availability of a public advisory with reproduction steps - a public PoC reference exists, and it is not verified as working exploit code. No confirmed active exploitation (CISA KEV) is associated with this issue, and the vendor-released fix is OpenEMR 8.5.0.

RemediationAI

Vendor-released patch: upgrade to OpenEMR 8.5.0, the fixed version listed in the GHSA-r4hm-frcj-qr39 advisory and vendor packaging data, which addresses the stored XSS in the onsiteportalactivity tableArgs handling; installations remaining on pre-8.5.0 builds stay exposed. If upgrading cannot be scheduled immediately, the practical exposure reduction is to limit who holds patient portal accounts on affected instances and to have providers review the audit review page cautiously, since the payload fires only on a deliberate click of the affected delete button rather than on page load - neither measure removes the underlying rendering defect. Where the portal is not required, disabling patient portal access removes the injection route entirely. Confirm patch status and any interim guidance against https://github.com/openemr/openemr/security/advisories/GHSA-r4hm-frcj-qr39 and https://www.vulncheck.com/advisories/openemr-before-8.5.0-stored-xss-via-onsiteportalactivity-tableargs before finalizing the rollout.

Affected VersionsENISA

OpenEMR 0 <8.5.0

Affected Packages

euvd openemr fix: 8.5.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is CWE-79 (improper neutralization of input during web page generation), specifically a stored XSS arising from context-incorrect output encoding rather than an absent filter. OpenEMR's patient portal exposes a hidden JSON API, POST /portal/patient/api/onsiteportalactivity, wired up in portal/patient/_app_config.php and handled by portal/patient/libs/Controller/OnsitePortalActivityController.php, which persists attacker-influenced fields such as tableArgs into the onsite portal activity record. Rendering happens in portal/patient/templates/OnsiteActivityViewListView.tpl.php around line 127, where the delete button template places the value as data-delete-id=<%= _.escape(item.get('tableArgs') || '') %>. Underscore's _.escape() encodes HTML metacharacters but the attribute itself is unquoted, so a value containing whitespace terminates the attribute and lets the remainder be parsed as a new attribute; a payload such as '1 onclick=alert(1) foo=' yields data-delete-id=1 onclick=alert(1) foo= and installs an inline event handler. Because browser HTML parsing occurs after the escaping step, the encoding provides no protection in an unquoted-attribute context. Affected builds are the OpenEMR 0 through pre-8.5.0 line (CPE cpe:2.3:a:openemr:openemr:*), with v8_0_0_3 confirmed in the upstream GitHub security advisory GHSA-r4hm-frcj-qr39; the trigger requires an authenticated portal session and a provider-side click, and the exact endpoint exposure on other branches is not verified beyond the advisory.

Know when Openemr gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 4.8 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
vuln.today AI 5.4 MEDIUM

Authenticated patient account gives PR:L; a privileged user must click the delete button (UI:R); the payload executes across a trust boundary into the provider session, so S:C with low C/I and no availability impact.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 13, 2026 - 10:02 EUVD

DescriptionCVE.org

OpenEMR before 8.5.0 contains a stored cross-site scripting vulnerability that allows low-privileged patient portal users to inject JavaScript via the tableArgs field of the onsiteportalactivity API. Attackers can store a payload with spaces that breaks out of an unquoted data-delete-id attribute, executing script when providers click the delete button on the audit review page.

Threat Intelligence Overview

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Medium
widely-used open-source EHR, but healthcare-sector-specific deployment footprint
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2013-10044 HIGH POC
8.7 Aug 01

An authenticated SQL injection vulnerability exists in OpenEMR ≤ 4.1.1 Patch 14 that allows a low-privileged attacker to

CVE-2026-24898 CRITICAL POC
10.0 Mar 03

Unauthenticated token disclosure in OpenEMR before 8.0.0. CVSS 10.0. PoC and patch available.

CVE-2026-24848 CRITICAL POC
9.9 Mar 03

Path traversal in OpenEMR 7.0.4 disposeDocument() allows file access. PoC available.

CVE-2026-24849 CRITICAL POC
9.9 Feb 25

Path traversal in OpenEMR electronic health records before fix allows authenticated users to read arbitrary files on the

CVE-2026-24908 CRITICAL POC
9.9 Feb 25

SQL injection in OpenEMR electronic health records before fix. Authenticated users can execute arbitrary SQL through the

CVE-2024-22611 CRITICAL POC
9.8 Apr 03

OpenEMR 7.0.2 is vulnerable to SQL Injection via \openemr\library\classes\Pharmacy.class.php, \controllers\C_Pharmacy.cl

CVE-2024-37734 CRITICAL POC
9.8 Jun 26

An issue in OpenEMR 7.0.2 allows a remote attacker to escalate privileges viaa crafted POST request using the noteid par

CVE-2026-25146 CRITICAL POC
9.6 Mar 03

Information disclosure in OpenEMR 5.0.2 to before 8.0.0 exposes sensitive data. PoC and patch available.

CVE-2026-39932 CRITICAL POC
9.4 Aug 03

Remote code execution in OpenEMR through 8.2.0 lets an authenticated administrator poison the document category tree so

CVE-2012-0992 HIGH POC
8.5 Feb 07

interface/fax/fax_dispatch.php in OpenEMR 4.1.0 allows remote authenticated users to execute arbitrary commands via shel

CVE-2026-124450 CRITICAL POC
9.3 Nov 08

Authenticated low-privilege users can exploit OpenEMR before 8.3.0 to read and write arbitrary files through the fax/sms

CVE-2015-4453 MEDIUM
5.0 Jul 05

interface/globals.php in OpenEMR 2.x, 3.x, and 4.x before 4.2.0 patch 2 allows remote attackers to bypass authentication

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy