Original 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 software
- OpenEMR < 8.3.0 Fixed in: 8.3.0 repository or package match
Details
- Published
- 2026-08-19
- Last modified
- 2026-10-02
- CVSS vector
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- CWE
- CWE-79
- EPSS (30-day exploit probability)
- 0.34% (percentile 28)
References
- cve.org/CVE-2026-40507
- nvd.nist.gov/vuln/detail/CVE-2026-40507
- github.com/openemr/openemr/security/advisories/GHSA-rmmr-8498-463g
- github.com/openemr/openemr/releases/tag/v8_3_0
- github.com/openemr/openemr/commit/ba316dd1d8de1291102da3f20f64240729ff899e
- www.vulncheck.com/advisories/openemr-reflected-xss-via-templatehtml-parameter-in-patient-p...
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.