Skip to content
CVE PROGRAM SOURCE RECORD5.1 Medium

CVE-2026-40507

OpenEMR < 8.3.0 Reflected XSS via templateHtml Parameter in Patient Portal

Description

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

openemr openemr

Default version status: affected

  • 0 to < 8.3.0affected
pkg:github/openemr/openemr

References