GHSA-w2f7-289j-92pp: OpenEMR before 8.5.0 Stored XSS via Patient External ID in Prescriptions

Published Nov 13, 2026
·
Updated

OpenEMR before 8.5.0 contains a stored cross-site scripting vulnerability that allows authenticated users to inject scripts by placing payloads in the patient External ID field. The payload executes when other users open the patient's prescriptions via View Printable Version (HTML), running script in their browser sessions.

Affected Software

1 affected component
OpenEMR OpenEMR<8.5.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.5.0

Event History

Nov 13, 2026
CVE Published
via OSV·09:35 AM
Data Sourced
via OSV·09:35 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

OpenEMR deployments running versions before 8.5.0 are affected. Exploitation requires an authenticated user who can set a patient's External ID, and the stored payload affects other users when they open that patient's prescriptions using View Printable Version (HTML).

2

What must an attacker do to exploit the vulnerability?

The attacker must authenticate to OpenEMR and place a script payload in the patient External ID field. The script is triggered when another user views the affected patient's prescriptions in the HTML printable view.

3

What is the likely impact on a user who triggers the payload?

The script runs in the browser session of the user opening the printable prescription view. The available data indicates confidentiality impact within the vulnerable component and a scope change, but does not indicate integrity or availability impact.

4

How can administrators identify potentially affected records?

Review patient External ID values for unexpected script-like or HTML content, especially for patients whose prescriptions have been accessed through View Printable Version (HTML). The supplied information does not identify a specific detection query or log indicator.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203