Cross-site scripting in OpenEMR - CVE-2026-40507

 

Cross-site scripting in OpenEMR - CVE-2026-40507

Published: August 18, 2026 / Updated: September 14, 2026


Vulnerability identifier: #VU144028
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2026-40507
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary JavaScript in the browser of an authenticated Forms Administration user.

The vulnerability exists due to cross-site scripting in /portal/import_template.php when handling the templateHtml GET parameter. A remote attacker can send a specially crafted URL to execute arbitrary JavaScript in the browser of an authenticated Forms Administration user.

User interaction is required, and the victim must have Administration - Forms Administration permissions.


Affected software

OpenEMR

How to mitigate CVE-2026-40507

Install security update from vendor's website.

OpenEMR - update to 8.3.0

External References

Related Security Bulletins