Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to patient portal (PR:L)
-
DeliveryStore payload via onsiteportalactivity tableArgs API
-
ExploitPayload breaks out of unquoted data-delete-id attribute
-
ExecutionProvider clicks delete on audit review page
-
ImpactJavaScript 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
An authenticated SQL injection vulnerability exists in OpenEMR ≤ 4.1.1 Patch 14 that allows a low-privileged attacker to
Unauthenticated token disclosure in OpenEMR before 8.0.0. CVSS 10.0. PoC and patch available.
Path traversal in OpenEMR 7.0.4 disposeDocument() allows file access. PoC available.
Path traversal in OpenEMR electronic health records before fix allows authenticated users to read arbitrary files on the
SQL injection in OpenEMR electronic health records before fix. Authenticated users can execute arbitrary SQL through the
OpenEMR 7.0.2 is vulnerable to SQL Injection via \openemr\library\classes\Pharmacy.class.php, \controllers\C_Pharmacy.cl
An issue in OpenEMR 7.0.2 allows a remote attacker to escalate privileges viaa crafted POST request using the noteid par
Information disclosure in OpenEMR 5.0.2 to before 8.0.0 exposes sensitive data. PoC and patch available.
Remote code execution in OpenEMR through 8.2.0 lets an authenticated administrator poison the document category tree so
interface/fax/fax_dispatch.php in OpenEMR 4.1.0 allows remote authenticated users to execute arbitrary commands via shel
Authenticated low-privilege users can exploit OpenEMR before 8.3.0 to read and write arbitrary files through the fax/sms
interface/globals.php in OpenEMR 2.x, 3.x, and 4.x before 4.2.0 patch 2 allows remote attackers to bypass authentication
EUVD-2026-125131
GHSA-pv8c-r52v-h57w
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB