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 package | Versions | Reported by |
|---|---|---|
| openemr openemr | before 8.3.0 | CVE List |
All scores
| VulnCheck | 5.1medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| VulnCheck | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-40507 changed 2026-10-01 | CVE Terms of Use |
| NVD | CVE-2026-40507 changed 2026-10-27 | Public domain |