{"id":"CVE-2026-40507","published":"2026-08-19T14:48:49Z","modified":"2026-10-01T15:19:57Z","title":"OpenEMR < 8.3.0 Reflected XSS via templateHtml Parameter in Patient Portal","vendor":"openemr","product":"openemr","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00338,"percentile":0.27907,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/openemr/openemr/security/advisories/GHSA-rmmr-8498-463g","tags":["vendor-advisory"]},{"url":"https://github.com/openemr/openemr/releases/tag/v8_3_0","tags":["release-notes"]},{"url":"https://github.com/openemr/openemr/commit/ba316dd1d8de1291102da3f20f64240729ff899e","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/openemr-reflected-xss-via-templatehtml-parameter-in-patient-portal","tags":["third-party-advisory"]}],"priority":{"score":9.9,"factors":[{"name":"EPSS percentile","points":5.58},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"openemr","affectedVersions":[{"vendor":"openemr","product":"openemr","versions":["< 8.3.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-25T02:06:02.522702Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-62504","exploited":false,"provenance":"source"}}