{"id":"CVE-2026-67612","title":"OpenEMR through 8.2.0 contains a stored cross-site scripting vulnerability in the patient portal template system that allows authenticated administrators to inject arbitrary HTML and JavaScript by storing malicious payloads through the t…","summary":"OpenEMR through 8.2.0 contains a stored cross-site scripting vulnerability in the patient portal template system that allows authenticated administrators to inject arbitrary HTML and JavaScript by storing malicious payloads through the t…","severity":"medium","cvss":4.8,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","cwe":["CWE-79"],"published":"2026-08-03","updated":"2026-09-09","sourceUpdated":"2026-09-09T20:40:01.933","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-67612","references":[{"url":"https://jivasecurity.com/writeups/openemr-portal-template-stored-xss","label":"disclosure@vulncheck.com"},{"url":"https://www.vulncheck.com/advisories/openemr-stored-xss-via-import-template-php-template-management","label":"disclosure@vulncheck.com"}],"tags":["nvd"],"epss":0.00148,"epssPercentile":0.04392,"ingestedAt":"2026-09-09T21:22:45.522Z","slug":"CVE-2026-67612","body":"## Overview\n\nOpenEMR through 8.2.0 contains a stored cross-site scripting vulnerability in the patient portal template system that allows authenticated administrators to inject arbitrary HTML and JavaScript by storing malicious payloads through the template save mode, which only filters literal PHP open tags. Attackers can exploit the lack of output encoding at the template retrieval endpoint combined with missing HttpOnly cookie attributes to exfiltrate session tokens via document.cookie access, enabling full session hijacking of any admin, clinician, or portal patient who views a poisoned template.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":26,"depthScoreParts":{"impact":26.4,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}