
PEACH
Un cadre d’isolation des locataires
CVE-2026-126493 is a stored cross-site scripting (XSS) vulnerability in OpenEMR before version 8.5.0, affecting the patient portal's onsiteportalactivity API. A low-privileged patient portal user can inject malicious JavaScript via the tableArgs field, which is later executed in a provider or administrator's browser when they interact with the audit review page. The vulnerability was published on October 28, 2026, by researcher Leousum, with the GitHub Security Advisory (GHSA-r4hm-frcj-qr39) serving as the primary disclosure source. It carries a CVSS v3.1 base score of 5.4 (Medium) per NVD, though the GitHub advisory rates it 8.7 (High) with broader confidentiality and integrity impact (GitHub Advisory).
The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation), specifically an unquoted HTML attribute injection. The vulnerable endpoint is POST /portal/patient/api/onsiteportalactivity, where the tableArgs field is stored without sufficient sanitization. Although the template at OnsiteActivityViewListView.tpl.php:127 applies _.escape() to the value, the output is placed into an unquoted HTML attribute (data-delete-id=<%= _.escape(item.get('tableArgs') || '') %>), allowing a payload containing spaces to break out of the attribute and inject additional HTML attributes such as onclick=alert(1). Exploitation requires a valid patient portal account and provider/admin interaction with the audit review page at /portal/patient/onsiteactivityviews (GitHub Advisory).
Successful exploitation allows attacker-controlled JavaScript to execute in the browser session of a privileged provider or administrator, enabling session theft, credential harvesting, and action forgery within the EMR's privileged review interface. Because the script runs in the provider's authenticated context, an attacker could perform unauthorized clinical or administrative actions, access sensitive patient health information, or pivot further within the OpenEMR application. Availability is not directly impacted, but confidentiality and integrity of provider sessions and patient data are at risk (GitHub Advisory).
A proof-of-concept Python script is publicly available in the GitHub Security Advisory, demonstrating the full attack flow using the requests library to POST a crafted tableArgs payload to the vulnerable endpoint. The EPSS score is approximately 0.00235, indicating low current exploitation probability. There is no evidence of in-the-wild exploitation at this time, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The NVD SSVC assessment classifies exploitation status as "poc" and notes the attack is not automatable due to the required provider interaction (GitHub Advisory).
App=PortalOpenEMR and PortalOpenEMR=<session_token>)./portal/patient/api/onsiteportalactivity with a JSON body where tableArgs is set to a value that breaks out of the unquoted attribute, e.g., "tableArgs": "1 onclick=alert(1) foo=". For a real attack, replace alert(1) with a payload that exfiltrates the provider's session cookie or performs forged actions.http://<target>/portal/patient/onsiteactivityviews and clicks the delete button on the malicious record, triggering the injected onclick handler in their browser context./portal/patient/api/onsiteportalactivity containing tableArgs values with spaces and HTML event handler keywords (e.g., onclick, onerror, onmouseover); outbound requests from the provider's browser to unknown external domains following interaction with the audit review page.onsiteportalactivity endpoint with anomalous tableArgs values; provider access to /portal/patient/onsiteactivityviews shortly after a suspicious patient portal submission.onsite_portal_activity table where the table_args column contains HTML event handler strings (e.g., onclick=, onerror=) or JavaScript keywords (GitHub Advisory).Upgrade OpenEMR to version 8.5.0 or later, which addresses this vulnerability. As a workaround prior to patching, administrators should ensure the tableArgs field is properly output-encoded within quoted HTML attributes in OnsiteActivityViewListView.tpl.php, and consider restricting patient portal API access to trusted users. Monitoring API logs for suspicious tableArgs values and limiting provider exposure to the audit review page can reduce risk until patching is complete (GitHub Advisory).
The vulnerability was reported by researcher Leousum and published by OpenEMR maintainer bradymiller via the GitHub Security Advisory program. No significant broader media coverage or notable social media commentary has been identified at this time.
Source: Ce rapport a été généré à l’aide de l’IA
Évaluation gratuite des vulnérabilités
Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité afin d’évaluer votre niveau de risque et d’identifier les lacunes dans vos défenses.
Obtenez une démo personnalisée
"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."