Cross-site scripting in OpenEMR - CVE-2026-40507
Published: August 18, 2026 / Updated: September 14, 2026
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.