What’s Vulnerable › Vulnerabilities

CVE-2026-40507: OpenEMR < 8.3.0 Reflected XSS via templateHtml Parameter in Patient Portal

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 products

How to fix

Upgrade to a fixed version: openemr 8.3.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-40507 or the next vulnerability affects your stack