CVE-2026-40507
OpenEMR before 8.3.0 contains a reflected cross-site scripting …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/openemr/openemr/commit/ba316dd1d8de1291102da3f20f64240729ff899e
- github.com/openemr/openemr/releases/tag/v8_3_0
- github.com/openemr/openemr/security/advisories/GHSA-rmmr-8498-463g
- www.vulncheck.com/advisories/openemr-reflected-xss-via-templatehtml-parameter-in-patient-p
- nvd.nist.gov/vuln/detail/CVE-2026-40507
- cve.org/CVERecord?id=CVE-2026-40507
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.