Technical impact
The vulnerability is a reflected cross‑site scripting flaw in OpenEMR versions before 8.5.0. When an authenticated user submits a request that contains a malicious payload in the searchEleNo POST parameter to the /application/index/search endpoint, the unencoded value is reflected back within the auto‑suggest.phtml template. This allows an attacker to inject event handlers that fire when the element is inserted into the DOM, enabling theft of non‑HttpOnly session cookies and exposure of sensitive patient information. The flaw is an instance of CWE‑79, reflecting the inability of the application to properly encode or sanitize user input before rendering it.
Affected Systems
Any deployment of OpenEMR prior to the 8.5.0 release is affected. The vendor‑product pairing is openemr:openemr, and no fine‑grained version list is provided beyond the “before 8.5.0” range. All installations using the standard auto‑suggest functionality are thus vulnerable.
Risk and Exploitability
The risk is moderate with a CVSS score of 5.1 and an EPSS probability of less than 1 %. The flaw is not listed in CISA’s KEV catalog. Because the attack requires that the attacker be authenticated, the path involves logging into the application and submitting a crafted searchEleNo payload. If these conditions are met, exploitation is straightforward, and the effects can compromise a user’s session and expose confidential data.