CyberRota Analysis
AI-GeneratedThe vulnerability affects OpenEMR versions up to 8.2.0, allowing authenticated administrators to inject malicious HTML and JavaScript into the patient portal template system due to inadequate input filtering. This can lead to session hijacking of any admin, clinician, or patient who accesses the compromised template, as attackers can exfiltrate session tokens through the lack of output encoding and missing HttpOnly cookie attributes. Organizations using OpenEMR should prioritize addressing this vulnerability to protect sensitive patient data and maintain system integrity.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
OpenEMR through 8.2.0 contains a stored cross-site scripting vulnerability in the patient portal template system that allows authenticated administrators to inject arbitrary HTML and JavaScript by storing malicious payloads through the template save mode, which only filters literal PHP open tags. Attackers can exploit the lack of output encoding at the template retrieval endpoint combined with missing HttpOnly cookie attributes to exfiltrate session tokens via document.cookie access, enabling full session hijacking of any admin, clinician, or portal patient who views a poisoned template.