{"id":"CVE-2026-40507","title":"OpenEMR before 8.3.0 contains a reflected cross-site scripting vulnerability in the patient portal template import handler","summary":"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 …","severity":"medium","cvss":6.1,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","cwe":["CWE-79"],"published":"2026-08-19","updated":"2026-09-09","sourceUpdated":"2026-09-09T20:40:01.933","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-40507","references":[{"url":"https://github.com/openemr/openemr/commit/ba316dd1d8de1291102da3f20f64240729ff899e","label":"disclosure@vulncheck.com"},{"url":"https://github.com/openemr/openemr/releases/tag/v8_3_0","label":"disclosure@vulncheck.com"},{"url":"https://github.com/openemr/openemr/security/advisories/GHSA-rmmr-8498-463g","label":"disclosure@vulncheck.com"},{"url":"https://www.vulncheck.com/advisories/openemr-reflected-xss-via-templatehtml-parameter-in-patient-portal","label":"disclosure@vulncheck.com"},{"url":"https://github.com/openemr/openemr/security/advisories/GHSA-rmmr-8498-463g","label":"134c704f-9b21-4f2e-91b3-4a467353bcc0"}],"tags":["nvd","cve.org","exploit-available"],"epss":0.00338,"epssPercentile":0.27052,"ingestedAt":"2026-09-09T21:22:45.539Z","vendor":"openemr","product":"openemr","affected":["openemr < 8.3.0"],"exploitAvailable":true,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-25T02:06:02.522702Z"},"slug":"CVE-2026-40507","body":"## Overview\n\nOpenEMR 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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"twilight","depthScore":46,"depthScoreParts":{"impact":33.6,"likelihood":0.1,"exploitation":12,"ransomware":0},"changes":[{"seq":214501,"id":"CVE-2026-40507","ts":1790869844345,"field":"exploit_available","old":"false","new":"true"}]}