Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to OpenEMR (any role)
-
DeliverySubmit crafted searchEleNo POST to application/index/search
-
ExploitBreak out of unencoded HTML attribute in auto-suggest.phtml
-
ExecutionjQuery .html() inserts live DOM node
-
Persistonerror handler executes JavaScript
-
ImpactSteal non-HttpOnly session cookie and patient data
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 | Requires an authenticated OpenEMR session of any role/group (the autoSuggestAction controller and view perform no ACL check and no CSRF token is required), so this is NOT an unauthenticated remote flaw despite the supplied PR:N. The injected searchEleNo must be echoed through the auto-suggest row loop, which requires that at least one patient record exists whose name matches the queryString value (the advisory uses a patient named 'XSS Test'). Delivery must originate from the OpenEMR origin because the session cookie is SameSite=Strict, so the payload must be issued from an OpenEMR-origin context (the standard patient-search box flow already satisfies this); this same-origin constraint, plus the authentication requirement, are the main limiting factors that reduce realistic risk below a raw network-exploitable XSS. The decisive aggravator is that the OpenEMR session cookie is set with cookieHttpOnly: false (SessionConfigurationBuilder.php:20), so successful script execution yields direct cookie theft. |
| Impact | This is a moderate-severity, authenticated reflected XSS (CVSS 4.0 base 5.1) in OpenEMR's auto-suggest endpoint, and the real-world signals point to a solid-but-not-urgent priority rather than a top-of-queue emergency. KEV status is not indicated (no CISA KEV listing), so there is no confirmed active exploitation, and no EPSS probability was supplied, so widespread automated exploitation cannot be quantified from the input. The vuln.today decision label is 'this_month', consistent with a patchable, authentication-gated flaw rather than an act_now/emergency item. A detailed, confirmed-live proof of concept is published in the GHSA advisory (full HTTP request and working payload), which lowers the barrier to exploitation even though it is not catalogued as standalone weaponized exploit code. The most important signal conflict: the supplied CVSS 4.0 vector carries PR:N (no privileges required), but both the NVD-style description and the vendor GHSA advisory state exploitation requires an authenticated OpenEMR session and that the endpoint has no ACL check reachable only after login - PR:N appears incorrect and should be read as PR:L; verify with the vendor/VulnCheck. Impact is also bounded: the CVSS vector sets VC/VI/VA to N and reflects impact only in SC:L/SI:L (subsequent-system/browser), so the raw-server confidentiality/integrity impact is scored as none even though the advisory describes session-cookie theft and patient-data disclosure via the browser context. Net: a legitimate issue to patch on a normal monthly cycle, elevated somewhat by the non-HttpOnly session cookie that turns XSS into direct session hijack, but gated by authentication and same-origin delivery. |
| Exploit ScenarioDerived | An attacker with any authenticated OpenEMR account (or who induces a logged-in user's browser to issue the request from the OpenEMR origin) submits a crafted POST to application/index/search with a searchEleNo value that breaks out of the unencoded HTML attributes in auto-suggest.phtml, e.g. x"><img src=x onerror=alert(document.cookie)>. Because autosuggest.js inserts the returned fragment via jQuery .html(), the injected onerror handler executes immediately on DOM insertion with no click or keypress, and since the session cookie lacks HttpOnly, the attacker reads it via document.cookie for outright session hijack plus patient-data access. A confirmed, working PoC with the exact request and payload is published in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
Moderate-severity authenticated reflected cross-site scripting in OpenEMR's auto-suggest endpoint (application/index/search) lets an attacker who can drive an authenticated OpenEMR session from the OpenEMR origin execute JavaScript in that session by injecting into the searchEleNo POST parameter; because the session cookie is set without HttpOnly, document.cookie exposes the session token. The GitHub advisory includes a public proof-of-concept request that was reported as confirmed against a test instance, but no CISA KEV listing or evidence of active exploitation is provided, and the vuln.today priority is this_month. Affected versions are OpenEMR before 8.5.0; the vendor-released fix is 8.5.0.
RemediationAI
Vendor-released patch: upgrade to OpenEMR 8.5.0 or later, the fixed version listed in the advisory. The vendor advisory is https://github.com/openemr/openemr/security/advisories/GHSA-pv5m-vjm7-x355; no configuration-only workaround is described. If upgrading cannot be done immediately, the advisory's code-level mitigations are to constrain searchEleNo to digits in IndexController::autoSuggestAction() and reject non-numeric input, and to emit searchEleNo through escapeHtml() in HTML attribute contexts and js_escape()/escapeJs() in JavaScript string contents in auto-suggest.phtml; these changes affect the auto-suggest rendering path and require regression testing. The advisory notes no ACL check on the endpoint, so role-based restriction is not available without code changes.
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 in OpenEMR's Zend 'Application' module. IndexController::autoSuggestAction() at line 77 copies $request->getPost()->searchEleNo into the ViewModel without validation, and auto-suggest.phtml lines 136-161 echo it raw into double-quoted HTML attributes (onKeyDown, id) and JavaScript string literals inside onClick handlers. A double-quote payload breaks out of the attribute and injects HTML; the injected element becomes live when autosuggest.js inserts the fragment with jQuery .html(), so event handlers fire on DOM insertion. The endpoint has no ACL check and no CSRF token, so any authenticated user can reach it, and the session cookie is configured with cookieHttpOnly:false in SessionConfigurationBuilder.php:20, making the session token readable via document.cookie. Delivery is constrained by SameSite=Strict, requiring an OpenEMR-origin context, and the row loop requires at least one patient record matching queryString. The supplied CVSS 4.0 score is 5.1 with PR:N, but the assessed CVSS 3.1 vector is AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, reflecting the authenticated-session requirement; CPE openemr:openemr:* covers versions before 8.5.0.
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:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Authenticated endpoint with no ACL means PR:L not PR:N; reflected XSS needs same-origin/victim delivery so UI:R; script runs in the browser so S:C with C:L/I:L and no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
OpenEMR before 8.5.0 contains a reflected cross-site scripting vulnerability that allows authenticated attackers to execute JavaScript by injecting payloads into the searchEleNo POST parameter of the application/index/search endpoint. Attackers can break out of unencoded HTML attributes in auto-suggest.phtml to inject event handlers that fire on DOM insertion, stealing non-HttpOnly session cookies and patient data.
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-124949
GHSA-jcgx-x7gm-gxj2
NVD
CVE.org
EPSS
Exploit-DB