CVE Catalog

CVE-2026-67612

MediumCVSS 4.8
Published: Translated: NVD NIST

Summary

OpenEMR through 8.2.0 contains a stored XSS vulnerability in the patient portal template system. Authenticated administrators can inject arbitrary HTML and JavaScript by storing malicious payloads through the template save mode, which only filters literal PHP open tags. Lack of output encoding at the template retrieval endpoint and missing HttpOnly cookie attributes allow session token exfiltration via document.cookie.

Risk Assessment

An attacker can hijack the session of any admin, clinician, or portal patient who views a poisoned template, leading to full account takeover and access to sensitive medical data.

Recommendation

Update OpenEMR to version 8.2.1 or later, and implement proper output encoding and HttpOnly attributes for session cookies.

Other vulnerabilities in OpenEMR

See all
Original NVD description (English source)

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 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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS