Technical impact
OpenEMR versions before 8.5.0 contain a stored cross‑site scripting flaw that permits users with Eye Exam edit rights to inject arbitrary JavaScript through the Next Visit Orders PLAN[] field. The injected payload closes the textarea in view.php and runs when another user opens the Eye Exam editor, enabling an attacker to read session cookies or capture clinical information. The weakness is a classic input validation issue (CWE‑79).
Affected Systems
The vulnerability affects the OpenEMR openemr product for all releases earlier than 8.5.0. Any instance of OpenEMR running one of these versions is potentially marked as vulnerable; no sub‑version detail is provided beyond the major‑minor boundary.
Risk and Exploitability
The CVSS score of 5.1 reflects a moderate risk, and the EPSS score of less than 1% indicates a very low current exploitation likelihood. The flaw is not listed in the CISA KEV catalog. Attackers must be authenticated and possess Eye Exam edit permissions, meaning the threat is limited to individuals who already have legitimate access. Once exploited, the attacker can steal session identifiers or other sensitive clinical data presented in the editor interface. The attack vector is likely internal, via a logged‑in user’s interaction with the editor.