CVE-2026-40507
JSON

5.1medium

OpenEMR < 8.3.0 Reflected XSS via templateHtml Parameter in Patient Portal

Severity
5.1medium CVSS:4.0 by VulnCheck
Exploit likelihood
0.30% (higher than 24% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck

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

Product or packageVersionsReported by
openemr openemrbefore 8.3.0CVE List

All scores

VulnCheck5.1medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
VulnCheck6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

OpenEMR anterior a la versión 8.3.0 contiene una vulnerabilidad de cross-site scripting reflejado en el gestor de importación de plantillas del portal del paciente. El parámetro GET templateHtml se refleja en la respuesta de la página sin sanitización. Un atacante puede crear una URL que ejecuta JavaScript arbitrario en el navegador de cualquier usuario autenticado con permisos de Administración de Formularios que visita el enlace, lo que permite el secuestro de sesión.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-40507 changed 2026-10-01CVE Terms of Use
NVDCVE-2026-40507 changed 2026-10-27Public domain