Cross-site scripting in OpenEMR - CVE-2026-33303
Published: April 23, 2026
OpenEMR
Detailed vulnerability description
The vulnerability allows a remote user to execute arbitrary script in a clinic staff member's browser session.
The vulnerability exists due to cross-site scripting in the credential print view template when rendering a stored portal_login_username value into an HTML attribute without proper escaping. A remote user can set a crafted portal username and cause a staff member to open the patient's "Create Portal Login" page to execute arbitrary script in a clinic staff member's browser session.
User interaction is required, and the issue crosses from the patient portal session context into the staff or admin session context.