Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain or leverage authenticated session
-
DeliveryCraft single-quote searchMode payload
-
ExploitInduce victim POST to application/index/search
-
Executiononerror fires on jQuery .html() insertion
-
ImpactRead non-HttpOnly cookie and hijack 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 | Requires an authenticated OpenEMR session to reach the Application module auto-suggest endpoint (application/index/search); the advisory confirms the controller action has NO ACL check, so any authenticated user of any role/group suffices, and NO CSRF token is required. The payload must use a single-quote terminator to break out of the single-quoted onClick attribute (a double-quote payload stays inert). At least one patient record whose name matches the queryString value must exist so the auto-suggest result row renders and the searchMode-bearing onClick is emitted. The victim's browser must submit the request (reflected XSS, UI:A), though no explicit click is needed afterward because jQuery .html() insertion activates the injected <img onerror> immediately. Impact is amplified because the OpenEMR session cookie is set without HttpOnly (cookieHttpOnly: false), making the token directly readable via document.cookie. The only complete fix stated by the vendor is updating to 8.5.0 (with input allow-listing of searchMode and output encoding as the code-level remediation). |
| Impact | Signals point to a genuine but moderate-priority issue rather than an emergency. The vendor CVSS 4.0 vector (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, score 5.1 Medium) describes a network-reachable, low-complexity flaw whose impact is confined to the subsequent system (the victim's browser/session: SC:L/SI:L) with no direct impact on the OpenEMR server itself (VC/VI/VA:N), and it requires active user interaction (UI:A). No EPSS score and no KEV listing are provided, so there is no evidence of active or at-scale exploitation; CISA KEV status is therefore no public exploit identified as actively exploited. However, the GHSA advisory contains a fully documented, root-cause-level proof of concept with an exact request, payload (searchMode=x'><img src=x onerror=alert(document.cookie)>), and a rendered live response the reporter states was confirmed against a test instance - so a detailed public PoC reference exists; it is not packaged as a standalone weaponized exploit tool. The vuln.today Decision label is this_month, consistent with a patch-this-cycle posture rather than act_now. Weighing these: this is a real, verified, reporter-confirmed reflected XSS in a healthcare EHR with directly stealable session cookies (no HttpOnly flag), which raises impact above a typical XSS; but exploitation needs an authenticated context and per-victim social engineering (not automatable at scale), and the server-side confidentiality/integrity impact is indirect. Note one tension to verify: the CVSS vector marks PR:N (attacker needs no privileges), while the advisory states the vulnerable endpoint has no ACL check but still requires an authenticated session to reach - PR:N is defensible for reflected XSS (the victim's session, not the attacker's privileges, is leveraged), but defenders should understand the endpoint is not anonymously reachable. |
| Exploit ScenarioDerived | An attacker with any low-privilege OpenEMR account (or who can lure a logged-in user) crafts an auto-suggest search request whose searchMode parameter carries a single-quote breakout payload and targets a query string matching an existing patient name. When the victim's browser submits it to application/index/search, OpenEMR echoes searchMode unencoded into a single-quoted onClick attribute, and jQuery's .html() insertion immediately activates an injected <img onerror> handler. Because the session cookie lacks the HttpOnly flag, the payload reads document.cookie and exfiltrates the session token, enabling session hijacking and patient-data disclosure; a detailed, reporter-confirmed PoC for this 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
Reflected cross-site scripting in OpenEMR's Application module auto-suggest endpoint (application/index/search) allows an attacker to run arbitrary JavaScript inside another user's authenticated session by abusing the searchMode POST parameter, which is echoed unencoded into a single-quoted onClick attribute. Every OpenEMR release before 8.5.0 is affected, and the advisory notes the controller action has no ACL check and the endpoint requires no CSRF token, so any authenticated user of any role can reach it; the injected element fires as soon as the fragment is inserted via jQuery .html(), without a further click. Impact is amplified because the OpenEMR session cookie is issued without HttpOnly, so document.cookie exposes the session token directly, enabling session hijacking and patient-data disclosure; the issue is not listed in CISA KEV, though the vendor advisory documents a proof-of-concept payload the reporter confirmed against a live test instance. Fixed in 8.5.0.
RemediationAI
Update OpenEMR to 8.5.0, the fixed version named in the vendor advisory and the package data; the vendor states that updating is the only complete fix, and no workaround is documented. For deployments that maintain their own patched builds, the advisory's code-level remediation is twofold: in IndexController::autoSuggestAction() constrain searchMode to an allow-list of known values and reject anything else instead of passing it through as a freeform string, and in auto-suggest.phtml emit searchMode through escapeHtml() for the HTML attribute position and js_escape()/escapeJs() for the JavaScript string contents of the onClick handler, matching the escapeHtml() already applied to the patient-name value in the adjacent fill(...) call. Advisory details are at https://github.com/openemr/openemr/security/advisories/GHSA-8mwp-vq82-x5mr, and VulnCheck's write-up is at https://www.vulncheck.com/advisories/openemr-before-8.5.0-reflected-xss-via-auto-suggest-searchmode-parameter.
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
OpenEMR's Application module is a Zend Framework component under interface/modules/zend_modules. IndexController::autoSuggestAction() reads searchMode from $request->getPost() with no validation and passes it straight into the ViewModel, which auto-suggest.phtml interpolates raw into a double-quoted JavaScript string nested inside a single-quoted onClick handler attribute. Because that value sits inside single quotes, the breakout requires a single-quote terminator; a double quote stays inert, unlike the separately reported searchEleNo parameter that is emitted into double-quoted attributes. The action calls setTerminal(true) and returns a bare HTML fragment that OpenEMR's own autosuggest.js inserts with jQuery .html(), creating live DOM nodes so inline handlers such as <img onerror> execute immediately on insertion. This is a classic CWE-79 output-encoding failure: the adjacent fill(...) call in the same view correctly applies escapeHtml() to the patient name, but no escapeHtml()/escapeJs()/attr() is applied to searchMode, and the code-level remedy is to allow-list searchMode to known values and encode it for both the attribute and JavaScript contexts. The impact is worsened by SessionConfigurationBuilder.php setting cookieHttpOnly to false, and by the absence of both an ACL check on the action and a CSRF token on the endpoint. Exploitation additionally requires at least one existing patient record matching the queryString value so the result row bearing the onClick attribute is rendered.
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
Reflected XSS exploited via a crafted request the authenticated victim must submit (UI:R, PR:N), executing script that crosses into the browser context (S:C) with limited confidentiality/integrity impact and no availability effect.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
OpenEMR before 8.5.0 contains a reflected cross-site scripting vulnerability in the Application module's auto-suggest endpoint, which echoes the searchMode POST parameter unencoded into a single-quoted onClick attribute. Attackers can induce an authenticated user to submit a single-quote payload to application/index/search, executing arbitrary JavaScript in that user's session to steal session cookies or disclose 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-124948
GHSA-jrm3-23cv-wv83
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB