Technical impact
The vulnerability arises when the OpenEMR application renders stored values for transfer_to, code, and codetext inside double‑quoted HTML attributes without proper encoding, allowing an attacker who can submit a value containing a quotation mark to break out of the attribute scope and inject event‑handler JavaScript. The injected payload executes in the victim’s browser and can read session data, expose protected health information, or perform unauthorized patient‑record actions. This flaw is a classic stored XSS (CWE‑79) that enables exploitation whenever an authenticated clinical user stores inappropriate input and another clinician subsequently views the form.
Affected Systems
OpenEMR, versions prior to 8.3.0. The issue affects the interface/forms/transfer_summary/new.php and interface/forms/functional_cognitive_status/new.php pages, which are part of the standard OpenEMR distribution. Any deployment using an OpenEMR build released before 8.3.0 is vulnerable. The fix was included in the 8.3.0 release, so systems still running earlier major or minor versions are impacted.
Risk and Exploitability
The CVSS score of 8.1 indicates a high severity for the combination of confidentiality, integrity, and availability impacts. EPSS is not available, but the attack can be performed by an authenticated user and requires no special privileges beyond normal clinical access, making it relatively low‑effort. The flaw is not listed in CISA’s KEV catalog, but because it permits injection of arbitrary scripts into a web browser session, skilled adversaries could leverage it in targeted phishing or credential‑stealing campaigns. The attack vector is the web application, derived from the described stored input that is later rendered without proper escaping.