CVE-2026-40507CWE-79cross-site-scripting

CVE-2026-40507

Medium · published August 19, 2026

CVSS v3.1
6.1
EPSS
0%
Percentile
26.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.1 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS v4.0
5.1 · 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
EPSS
0.00338 · 26.0th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2026-08-19T19:17Z
References (5)
EPSS history
Timeline
  • 19 AUG 14:48Z
    OpenEMR < 8.3.0 Reflected XSS via templateHtml Parameter in Patient Portal
    cvelistv5