Missing Authorization in OpenEMR - #VU143986
Published: August 18, 2026
Vulnerability details
The vulnerability allows a remote user to modify the current session's selected patient to an arbitrary patient record.
The vulnerability exists due to missing authorization in library/ajax/set_pt.php when handling requests that set the session patient identifier. A remote user can send a crafted request to bind the current session to any patient ID.
The endpoint checks only CSRF protection and updates the session value used by other application functions to determine the active patient context.