CVE-2026-40507

MEDIUM CVSS 4.0: 5.1 EPSS 0.34%
Updated Oct 27, 2026
Openemr
Parameter Value
CVSS 5.1 (MEDIUM)
Affected Versions before 8.3.0
Type CWE-79 (Cross-Site Scripting (XSS))
Vendor Openemr
Public PoC No

OpenEMR before 8.3.0 contains a reflected cross-site scripting vulnerability in the patient portal template import handler. The templateHtml GET parameter is reflected into the page response without sanitization. An attacker can craft a URL that executes arbitrary JavaScript in the browser of any authenticated user with Forms Administration permissions who visits the link, enabling session hijacking.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
Active
User action required

Impact Assessment

Confidentiality
None
No data leak
Integrity
None
No data modification
Availability
None
No disruption

CVSS Vector v4.0

Vulnerable Products

openemr:openemr