Technical impact
A stored cross‑site scripting flaw exists in OpenEMR versions prior to 8.5.0. The flaw allows an authenticated user to insert arbitrary JavaScript into the patient External ID field. When another user accesses the patient’s prescriptions through the View Printable Version (HTML) action, the stored script executes in that user’s browser, potentially enabling credential theft, phishing, or other client‑side attacks. The vulnerability is a classic Cross‑Site Scripting flaw identified as CWE‑80, with a CVSS base score of 5.3 indicating moderate severity.
Affected Systems
The issue affects all installations of OpenEMR released before 8.5.0; the vendor has provided a single advisory for the entire product line. Specific sub‑versions are not enumerated, so any deployment running a pre‑8.5.0 build is potentially vulnerable.
Risk and Exploitability
The CVSS score of 5.3 reflects the medium risk of client‑side exploitation. The EPSS score is below 1 %, indicating that, at the time of this analysis, it is unlikely to be actively exploited in the wild, and the vulnerability is not listed in CISA’s KEV catalogue. However, because exploitation requires only an authenticated session, internal users or attackers who gain limited access can inject scripts. A potential attack chain involves an attacker logging in, inserting a payload into a patient’s External ID, and then waiting for other users to view the printable prescription, at which point the arbitrarily executed script runs.