CVE-2026-40508

MEDIUM CVSS 4.0: 5.1 EPSS 0.30%
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 stored cross-site scripting vulnerability in the patient portal template import handler that allows authenticated attackers with Forms Administration permissions to upload template files containing arbitrary HTML or JavaScript. Attackers can inject malicious scripts through the template upload functionality, which are stored without sanitization and execute in the browser of any other Forms Administration user who views the template in the HTML editor.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
Low
Basic privileges needed
User Interaction
Passive
Minimal interaction

Impact Assessment

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

CVSS Vector v4.0

Vulnerable Products

openemr:openemr