{"id":"CVE-2026-40507","state":"PUBLISHED","title":"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.","publishedAt":"2026-08-19T14:48:49.751Z","updatedAt":"2026-10-01T15:19:57.811Z","severity":{"score":5.1,"label":"Medium","version":"4.0","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","source":"VulnCheck"},"assigner":"VulnCheck","products":["openemr openemr"],"affected":[{"vendor":"openemr","product":"openemr","packageURL":"pkg:github/openemr/openemr","defaultStatus":"affected","versions":[{"version":"0","status":"affected","lessThan":"8.3.0","versionType":"semver"}],"repo":"https://github.com/openemr/openemr"}],"references":["https://github.com/openemr/openemr/security/advisories/GHSA-rmmr-8498-463g","https://github.com/openemr/openemr/releases/tag/v8_3_0","https://github.com/openemr/openemr/commit/ba316dd1d8de1291102da3f20f64240729ff899e","https://www.vulncheck.com/advisories/openemr-reflected-xss-via-templatehtml-parameter-in-patient-portal"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/40xxx/CVE-2026-40507.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-40507","state":"PUBLISHED","datePublished":"2026-08-19T14:48:49.751Z","dateUpdated":"2026-10-01T15:19:57.811Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-04-13T20:29:02.808Z"},"containers":{"cna":{"title":"OpenEMR < 8.3.0 Reflected XSS via templateHtml Parameter in Patient Portal","descriptions":[{"lang":"en","value":"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":[{"vendor":"openemr","product":"openemr","packageURL":"pkg:github/openemr/openemr","defaultStatus":"affected","versions":[{"version":"0","status":"affected","lessThan":"8.3.0","versionType":"semver"}],"repo":"https://github.com/openemr/openemr"}],"references":[{"url":"https://github.com/openemr/openemr/security/advisories/GHSA-rmmr-8498-463g","name":"GitHub Security Advisory (GHSA-rmmr-8498-463g)","tags":["vendor-advisory"]},{"url":"https://github.com/openemr/openemr/releases/tag/v8_3_0","name":"OpenEMR v8_3_0 Release Notes","tags":["release-notes"]},{"url":"https://github.com/openemr/openemr/commit/ba316dd1d8de1291102da3f20f64240729ff899e","name":"Patch Commit","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/openemr-reflected-xss-via-templatehtml-parameter-in-patient-portal","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"ACTIVE","vulnConfidentialityImpact":"NONE","subConfidentialityImpact":"LOW","vulnIntegrityImpact":"NONE","subIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"MEDIUM","baseScore":5.1,"vectorString":"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"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","version":"3.1","baseSeverity":"MEDIUM","baseScore":6.1,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-10-01T15:19:57.811Z"},"tags":["x_open-source"],"datePublic":"2026-08-18T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*","versionEndExcluding":"8.3.0"}]}]}],"credits":[{"lang":"en","value":"Alex Williams from Pellera Technologies","type":"finder"},{"lang":"en","value":"VulnCheck","type":"finder"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"vulncheck"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/openemr/openemr/security/advisories/GHSA-rmmr-8498-463g","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-25T02:06:02.522702Z","id":"CVE-2026-40507","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-25T02:06:25.652Z"}}]}}}