Technical impact
A stored cross‑site scripting flaw exists in OpenEMR's sl_eob_invoice.php. The application escapes billing codes for HTML attributes but fails to sanitize JavaScript strings in an inline onkeyup handler. Messages that an attacker can store malicious code in a billing code via diagnosis.php. When a Back‑Office user subsequently enters a payment, the payload executes in the victim’s browser, allowing the attacker to read patient and financial information or perform actions with the user’s privileges.
Affected Systems
The exploit affects OpenEMR installations running any release prior to 8.5.0. The vulnerability is tied to the openemr:openemr product family.
Risk and Exploitability
The CVSS score of 6.9 signals moderate to high severity, but the EPSS score of less than 1% indicates that, at present, exploitation likelihood is very low. The injection is stored; the attacker needs encounter‑coding access to save a payload and a separate Back‑Office user must trigger a payment to run the script. This suggests the attack vector is internal, requiring legitimate credentials with neither direct nor cross‑site scripting privileges. The vulnerability is not listed in the CISA KEV catalog, so it has no publicly confirmed exploits.